linux/fs/ceph
Xiubo Li 66ec619e45 ceph: blocklist the kclient when receiving corrupted snap trace
[ Upstream commit a68e564adc ]

When received corrupted snap trace we don't know what exactly has
happened in MDS side. And we shouldn't continue IOs and metadatas
access to MDS, which may corrupt or get incorrect contents.

This patch will just block all the further IO/MDS requests
immediately and then evict the kclient itself.

The reason why we still need to evict the kclient just after
blocking all the further IOs is that the MDS could revoke the caps
faster.

Link: https://tracker.ceph.com/issues/57686
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-22 12:59:45 +01:00
..
acl.c
addr.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
cache.c
cache.h netfs: Further cleanups after struct netfs_inode wrapper introduced 2022-06-10 20:55:21 +01:00
caps.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
ceph_frag.c
debugfs.c
dir.c ceph: wait for the first reply of inflight async unlink 2022-08-03 00:54:12 +02:00
export.c ceph: fail the open_by_handle_at() if the dentry is being unlinked 2022-10-04 19:18:08 +02:00
file.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
inode.c ceph: fix a NULL vs IS_ERR() check when calling ceph_lookup_inode() 2022-11-14 10:29:05 +01:00
io.c
io.h
ioctl.c
ioctl.h
Kconfig
locks.c ceph: switch to vfs_inode_has_locks() to fix file lock bug 2023-01-12 12:02:23 +01:00
Makefile
mds_client.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
mds_client.h ceph: fail the request if the peer MDS doesn't support getvxattr op 2022-10-04 19:18:08 +02:00
mdsmap.c treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
metric.c
metric.h
quota.c
snap.c ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
strings.c
super.c ceph: make f_bsize always equal to f_frsize 2022-08-03 00:54:13 +02:00
super.h ceph: blocklist the kclient when receiving corrupted snap trace 2023-02-22 12:59:45 +01:00
util.c
xattr.c ceph: prevent a client from exceeding the MDS maximum xattr size 2022-08-03 00:54:12 +02:00