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>
Mon, 27 Jan 2020 15:53:39 +0000 (16:53 +0100)
commit97820058fb2831a4b203981fa2566ceaaa396103
tree5a18ce172f2de81f74d5cbdabae3df5ccbdc0be6
parent4d681c2f9141cf50261eef85b3233151c83d068b
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>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/mds_client.c
fs/ceph/super.c