]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: check availability of mds cluster on mount after wait timeout
authorXiubo Li <xiubli@redhat.com>
Wed, 11 Dec 2019 01:29:40 +0000 (20:29 -0500)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 10 Jan 2020 10:11:06 +0000 (11:11 +0100)
commitbdf1c1dfb1b8f5d94a3c3572b37cc07aed51bf46
tree49ebd4dbad7fdbfe83fb5a7afe3ffa55c41eb25b
parente793dda4ed92a7d8358a8d2deed81d87dbca68b5
ceph: check availability of mds cluster on mount after wait timeout

If all the MDS daemons are down for some reason, then the first mount
attempt will fail with EIO after the mount request times out.  A mount
attempt will also fail with EIO if all of the MDS's are laggy.

This patch changes the code to return -EHOSTUNREACH in these situations
and adds a pr_info error message to help the admin determine the cause.

URL: https://tracker.ceph.com/issues/4386
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/ceph/mds_client.c
fs/ceph/super.c