]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit725fb521e15447a57b2bfe81ccaaf5298fa9b3b4
tree68e607e4e92547a1c5d8146db99256f0dd25f7b5
parentf6506550fad6109b0ddd542ca3c2e3c863631ef0
gfs2: Add missing rcu locking for glock lookup

BugLink: http://bugs.launchpad.net/bugs/1672544
commit f38e5fb95a1f8feda88531eedc98f69b24748712 upstream.

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.

Signed-off-by: Andrew Price <anprice@redhat.com>
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/gfs2/glock.c