commit | adf0d68701c7f3e50f21308c76f41e60956a6832 | [log] [tgz] |
---|---|---|
author | Jeff Layton <jlayton@redhat.com> | Thu Dec 15 08:37:58 2016 -0500 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Feb 20 12:16:05 2017 +0100 |
tree | 82927817ebd1d9d064a2278d42f8b999b2ac7fe4 | |
parent | fd36a71762f3b0fcb9741ed24021afabec7e0c45 [diff] |
ceph: fix unsafe dcache access in ceph_encode_dentry_release Accessing d_parent requires some sort of locking or it could vanish out from under us. Since we take the d_lock anyway, use that to fetch d_parent and take a reference to it, and then use that reference to call ceph_encode_inode_release. Link: http://tracker.ceph.com/issues/18148 Signed-off-by: Jeff Layton <jlayton@redhat.com> Reviewed-by: Yan, Zheng <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>