OSDN Git Service

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:35:02 +0000 (09:35 +0200)
commit00c26889e8222661f9d8603401ff33cd27429449
treeaf23fd110b0e1324e40b701b5a3f7467a7de98fa
parentd65f740efff010eb8e7b6e7daf3220117dec1e3b
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