gfs2: Switch to rhashtable_lookup_get_insert_fast
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 21 Feb 2017 22:19:10 +0000 (23:19 +0100)
committerBob Peterson <rpeterso@redhat.com>
Mon, 3 Apr 2017 13:14:41 +0000 (09:14 -0400)
commit0a52aba7c2168636fc71635cf3ccb92a79a96c38
treea6d611d27d4c2a91e894165e71f31488e442ccd8
parentc369898759e0e143a513d022121290370f001d01
gfs2: Switch to rhashtable_lookup_get_insert_fast

Switch from rhashtable_lookup_insert_fast + rhashtable_lookup_fast to
rhashtable_lookup_get_insert_fast, which is cleaner and avoids an extra
rhashtable lookup.

At the same time, turn the retry loop in gfs2_glock_get into an infinite
loop.  The lookup or insert will eventually succeed, usually very fast,
but there is no reason to give up trying at a fixed number of
iterations.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c