]> 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)
commit34533dcfaef4a4ae92c7b3556ee30ba5f3a684d9
tree941eb63a04a4ce71733273d1db846d501bfccf22
parent8e8191a35d8b8f28ac1b1e41e3e67b4bdcc2d4ec
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