ceph: stop reconnecting to MDS after connection being closed
PATCH 1/1 ceph: stop reconnecting to MDS after connection being closed
From: Xiubo Li <[email protected]>
The reconnect feature never been supported by MDS in mds non-RECONNECT state. This reconnect requests will incorrectly close the just reopened sessions when the MDS kills them during the "mds_session_blocklist_on_evict" option is disabled.
Remove it for now.
URL: https://tracker.ceph.com/issues/65647
--- fs/ceph/mds_client.c | 3 --- 1 file changed, 3 deletions(-)
fs/ceph/mds_client.c +0 -3
@@ -6241,9 +6241,6 @@ static void mds_peer_reset(struct ceph_connection *con)pr_warn_client (mdsc->fsc->client,"mds%d closed our session\n" , s->s_mds); -if (READ_ONCE (mdsc->fsc->mount_state) !=CEPH_MOUNT_FENCE_IO && -ceph_mdsmap_get_state (mdsc->mdsmap, s->s_mds) >=CEPH_MDS_STATE_RECONNECT ) -send_mds_reconnect (mdsc, s); }static void mds_dispatch (struct ceph_connection *con,struct ceph_msg *msg)
Signature · 1 line
2.44.0
Hi Xiubo,
Quoted 32 lines · On Tue, May 14, 2024 at 12:39 PM <[email protected]> wrote:
From: Xiubo Li <[email protected]>
The reconnect feature never been supported by MDS in mds non-RECONNECT state. This reconnect requests will incorrectly close the just reopened sessions when the MDS kills them during the "
mds_session_blocklist_on_evict" option is disabled.Remove it for now.
Fixes 7e70f0ed9f3e ("ceph: attempt mds reconnect if mds closes our session")URL: https://tracker.ceph.com/issues/65647
Signed-off-by Xiubo Li <[email protected]>--- fs/ceph/mds_client.c | 3 --- 1 file changed, 3 deletions(-)fs/ceph/mds_client.c +0
-4@@ -6241,9 +6241,6 @@ static void mds_peer_reset(struct ceph_connection *con)pr_warn_client (mdsc->fsc->client,"mds%d closed our session\n" , s->s_mds); -if (READ_ONCE (mdsc->fsc->mount_state) !=CEPH_MOUNT_FENCE_IO && -ceph_mdsmap_get_state (mdsc->mdsmap, s->s_mds) >=CEPH_MDS_STATE_RECONNECT ) -send_mds_reconnect (mdsc, s); }static void mds_dispatch (struct ceph_connection *con,struct ceph_msg *msg) --
Quoted 2 lines
2.44.0
I don't see this change in the testing branch so that the fix can be verified with
https://github.com/ceph/ceph/pull/57458
Signature · 2 lines
Cheers, Venky
Quoted 32 lines · Venky Shankar
Hi Xiubo,
Quoted 29 lines · On Tue, May 14, 2024 at 12:39 PM <[email protected]> wrote:
From: Xiubo Li <[email protected]>
The reconnect feature never been supported by MDS in mds non-RECONNECT state. This reconnect requests will incorrectly close the just reopened sessions when the MDS kills them during the "
mds_session_blocklist_on_evict" option is disabled.Remove it for now.
Fixes 7e70f0ed9f3e ("ceph: attempt mds reconnect if mds closes our session")URL: https://tracker.ceph.com/issues/65647
Signed-off-by Xiubo Li <[email protected]>--- fs/ceph/mds_client.c | 3 --- 1 file changed, 3 deletions(-)fs/ceph/mds_client.c +0
-3@@ -6241,9 +6241,6 @@ static void mds_peer_reset(struct ceph_connection *con)pr_warn_client (mdsc->fsc->client,"mds%d closed our session\n" , s->s_mds); -if (READ_ONCE (mdsc->fsc->mount_state) !=CEPH_MOUNT_FENCE_IO && -ceph_mdsmap_get_state (mdsc->mdsmap, s->s_mds) >=CEPH_MDS_STATE_RECONNECT ) -send_mds_reconnect (mdsc, s); }
Quoted 8 lines
Quoted 4 lines
fs/ceph/mds_client.c +0
-1static void mds_dispatch (struct ceph_connection *con,struct ceph_msg *msg) --2.44.0
I don't see this change in the testing branch so that the fix can be verified with
https://github.com/ceph/ceph/pull/57458
Venky,
As I rememembered this is buggy and there was a failure in qa runs. So this change won't work.
Let me have a check again.
Thanks
- Xiubo