ceph: wait for async creating inode before requesting new max size
authorYan, Zheng <zyan@redhat.com>
Tue, 10 Mar 2020 11:34:21 +0000 (19:34 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:43 +0000 (12:42 +0200)
commit9bccb76574ad9ba6f5868b09053179fa2e72f8e0
treead5104af7210e20f0bfbcf82c45e06cd4935d7d2
parent0aa971b6fd3f92afef6afe24ef78d9bb14471519
ceph: wait for async creating inode before requesting new max size

ceph_check_caps() can't request new max size for async creating inode.
This may make ceph_get_caps() loop busily until getting reply of the
async create. Also, wait for async creating reply before calling
ceph_renew_caps().

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/caps.c