gfs2: Fix glock rhashtable rcu bug
commit78256de9a8d93c7d61ed847c7826caa11d35ab8c
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 7 Jul 2017 18:22:05 +0000 (7 13:22 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Jul 2017 14:53:57 +0000 (12 16:53 +0200)
treed73e286aa45eb988ff7fe2c1a361b208294dc69c
parent9b4adf4902b1b29c4a28959d7021d31665f3c95a
gfs2: Fix glock rhashtable rcu bug

commit 961ae1d83d055a4b9ebbfb4cc8ca62ec1a7a3b74 upstream.

Before commit 88ffbf3e03 "GFS2: Use resizable hash table for glocks",
glocks were freed via call_rcu to allow reading the glock hashtable
locklessly using rcu.  This was then changed to free glocks immediately,
which made reading the glock hashtable unsafe.  Bring back the original
code for freeing glocks via call_rcu.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/glock.c
fs/gfs2/incore.h