ceph: wait for async create reply before sending any cap messages
authorJeff Layton <jlayton@kernel.org>
Sat, 5 Feb 2022 13:39:33 +0000 (08:39 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Mar 2022 17:26:36 +0000 (18:26 +0100)
commitfbed7045f552db33f5f9e99ec40d55e6e0128b51
tree39c734103fcfed84f4c629c7d2e850b3d79bf128
parent9eaa7b79979f2cb1ac0508d413dc7f7664feb430
ceph: wait for async create reply before sending any cap messages

If we haven't received a reply to an async create request, then we don't
want to send any cap messages to the MDS for that inode yet.

Just have ceph_check_caps  and __kick_flushing_caps return without doing
anything, and have ceph_write_inode wait for the reply if we were asked
to wait on the inode writeback.

URL: https://tracker.ceph.com/issues/54107
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c