]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add session already open notify support
authorXiubo Li <xiubli@redhat.com>
Thu, 26 May 2022 05:21:31 +0000 (13:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 2 Aug 2022 22:54:12 +0000 (00:54 +0200)
commit0d4bace8b9c6ba3ee0f93ceee8966e77a920e27b
tree6916be0c80281941b178d438b674b47234a123ba
parent0e70be0c7456961e4494670fa602f023ba699a89
ceph: add session already open notify support

If the connection was accidently closed due to the socket issue or
something else the clients will try to open the opened sessions, the
MDSes will send the session open reply one more time if the clients
support the notify feature.

When the clients retry to open the sessions the s_seq will be 0 as
default, we need to update it anyway.

Link: https://tracker.ceph.com/issues/53911
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/mds_client.h