ceph: wake waiters after failed async create
authorJeff Layton <jlayton@kernel.org>
Tue, 8 Feb 2022 15:27:50 +0000 (10:27 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Mar 2022 17:26:36 +0000 (18:26 +0100)
commit4d9513cf6d20f2977c791087cf4fd9cadb9d28e3
treea864bf2ae0ff5a86d1c514373966fd2c058d73fb
parentfbed7045f552db33f5f9e99ec40d55e6e0128b51
ceph: wake waiters after failed async create

Currently, we only wake the waiters if we got a req->r_target_inode
out of the reply. In the case where the create fails though, we may not
have one.

If there is a non-zero result from the create, then ensure that we wake
anything waiting on the inode after we shut it down.

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