]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit754fee368d5326400804dfe15f647279b464020b
treea864bf2ae0ff5a86d1c514373966fd2c058d73fb
parent9580b74e744027ec02ef2a1a08fda499e03dfa97
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