]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: don't rely on error_string to validate blocklisted session.
authorKotresh HR <khiremat@redhat.com>
Mon, 27 Sep 2021 13:52:27 +0000 (19:22 +0530)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Nov 2021 02:29:51 +0000 (03:29 +0100)
commita990c3e52fc447e4e490773001efa6af313d31e7
tree2335df54e7ce124c1aa831c83d2d1bba85d0597e
parentcace36685a730c4413a1d723ad0ee4504f4de1d4
ceph: don't rely on error_string to validate blocklisted session.

The "error_string" in the metadata of MClientSession is being
parsed by kclient to validate whether the session is blocklisted.
The "error_string" is for humans and shouldn't be relied on it.
Hence added the flag to MClientsession to indicate the session
is blocklisted.

[ jlayton: minor formatting cleanup ]

URL: https://tracker.ceph.com/issues/47450
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
include/linux/ceph/ceph_fs.h