]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17e31ac0fed9b854c40f10613d2be6988fe30598
tree941eb63a04a4ce71733273d1db846d501bfccf22
parentb7b0105083210a9feac82949c3dda9f325182be0
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