]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: flush release queue when handling caps for unknown inode
authorJeff Layton <jlayton@kernel.org>
Wed, 20 May 2020 14:36:07 +0000 (10:36 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 27 May 2020 11:03:57 +0000 (13:03 +0200)
commitf6dee327b388f80e57ea250865b1a265f1695e43
tree95fabf81bd8b03e209e535b9ed92b1ab3f880ef7
parent3377a58d92608a7bbe8ee83549280640307407e7
ceph: flush release queue when handling caps for unknown inode

It's possible for the VFS to completely forget about an inode, but for
it to still be sitting on the cap release queue. If the MDS sends the
client a cap message for such an inode, it just ignores it today, which
can lead to a stall of up to 5s until the cap release queue is flushed.

If we get a cap message for an inode that can't be located, then go
ahead and flush the cap release queue.

Cc: stable@vger.kernel.org
URL: https://tracker.ceph.com/issues/45532
Fixes: ab2139f50874 ("ceph: delete stale dentry when last reference is dropped")
Reported-and-Tested-by: Andrej Filipčič <andrej.filipcic@ijs.si>
Suggested-by: Yan, Zheng <zyan@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c