]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: wait on async create before checking caps for syncfs
authorJeff Layton <jlayton@kernel.org>
Mon, 6 Jun 2022 23:31:42 +0000 (19:31 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 29 Jun 2022 16:02:57 +0000 (18:02 +0200)
commit1a1e3e43aa45cecef3ce70a309b1cafd90d64ff3
treea70d87c0da14e3f29c55961dc7c6840b52b5b277
parent4f64cb9d4742408196e508a683a5f394c26fe503
ceph: wait on async create before checking caps for syncfs

Currently, we'll call ceph_check_caps, but if we're still waiting
on the reply, we'll end up spinning around on the same inode in
flush_dirty_session_caps. Wait for the async create reply before
flushing caps.

Cc: stable@vger.kernel.org
URL: https://tracker.ceph.com/issues/55823
Fixes: 3208c1b7c222 ("ceph: wait for async create reply before sending any cap messages")
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/caps.c