From: Xiubo Li <xiubli@xxxxxxxxxx> If all the MDS daemons are down for some reasons, and immediately just before the kclient getting the new mdsmap the mount request is fired out, it will be the request wait will timeout with -EIO. After this just check the mds cluster availability to give a friendly hint to let the users check the MDS cluster status. Signed-off-by: Xiubo Li <xiubli@xxxxxxxxxx> --- fs/ceph/mds_client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index a5163296d9d9..82a929084671 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -2712,6 +2712,9 @@ static int ceph_mdsc_wait_request(struct ceph_mds_client *mdsc, if (test_bit(CEPH_MDS_R_GOT_RESULT, &req->r_req_flags)) { err = le32_to_cpu(req->r_reply_info.head->result); } else if (err < 0) { + if (!ceph_mdsmap_is_cluster_available(mdsc->mdsmap)) + pr_info("probably no mds server is up\n"); + dout("aborted request %lld with %d\n", req->r_tid, err); /* -- 2.21.0