Message ID | 20240514070856.194701-1-xiubli@redhat.com |
---|---|
State | New |
Headers | show |
Series | ceph: stop reconnecting to MDS after connection being closed | expand |
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index f5b25d178118..97a126c54578 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -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)