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)
commite1c9788cb39777e81ebfbf31ae80b4ec14eb6f6d
tree2335df54e7ce124c1aa831c83d2d1bba85d0597e
parent25b7351161941222da17d4caa136d49031fdba6b
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