ceph: fix dir_lease_is_valid()
authorYan, Zheng <zyan@redhat.com>
Wed, 22 May 2019 09:26:27 +0000 (17:26 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:42 +0000 (14:01 +0200)
commitfeab6ac25dbfe3ab96299cb741925dc8d2da0caf
tree4dd320967b6e66baf9d31b0c7ce7ffcae25b0ea7
parent543212b3a4a4abe0cbc610c704cc3cb85315c367
ceph: fix dir_lease_is_valid()

It should call __ceph_dentry_dir_lease_touch() under dentry->d_lock.
Besides, ceph_dentry(dentry) can be NULL when called by LOOKUP_RCU
d_revalidate()

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/dir.c