ceph: hold i_ceph_lock when removing caps for freeing inode
authorYan, Zheng <zyan@redhat.com>
Thu, 23 May 2019 03:01:37 +0000 (11:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Aug 2019 07:33:45 +0000 (09:33 +0200)
commit370bb858d70f330af54a670a54d13ae305bcde83
tree8ab6cd546d726dab90eca9bb5504485f41c1a821
parent91c5daaa743b35f63f729b821d015dd87daae3a5
ceph: hold i_ceph_lock when removing caps for freeing inode

commit d6e47819721ae2d9d090058ad5570a66f3c42e39 upstream.

ceph_d_revalidate(, LOOKUP_RCU) may call __ceph_caps_issued_mask()
on a freeing inode.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/caps.c