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)
commit300e42a2e79e2270a00dbf9e4ddd4b101dd75a03
tree6916be0c80281941b178d438b674b47234a123ba
parent4868e537fa867f82e38e37429d61d7bb8357d79b
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