ceph: update dentry lease for async create
authorYan, Zheng <zyan@redhat.com>
Wed, 4 Mar 2020 13:22:20 +0000 (21:22 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:42 +0000 (12:42 +0200)
commit3313f66a57ed73a47162af642e2c8d3995cae058
tree15bef2c054e9c86af6d3ed07651cfef5275bbf8f
parent9a8d03ca2e2c334d08ee91a3e07dcce31a02fdc6
ceph: update dentry lease for async create

Otherwise ceph_d_delete() may return 1 for the dentry, which makes
dput() prune the dentry and clear parent dir's complete flag.

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