gfs2: Add missing rcu locking for glock lookup
authorAndrew Price <anprice@redhat.com>
Wed, 22 Feb 2017 17:05:03 +0000 (12:05 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 23 Feb 2017 15:06:00 +0000 (10:06 -0500)
commitf38e5fb95a1f8feda88531eedc98f69b24748712
tree941eb63a04a4ce71733273d1db846d501bfccf22
parentc548a1c175608e268f6495f3f82461303584d1c9
gfs2: Add missing rcu locking for glock lookup

We must hold the rcu read lock across looking up glocks and trying to
bump their refcount to prevent the glocks from being freed in between.

Cc: <stable@vger.kernel.org> # 4.3+
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c