ceph: allow connecting to mds whose rank >= mdsmap::m_max_mds
authorYan, Zheng <zyan@redhat.com>
Tue, 28 Mar 2017 09:04:13 +0000 (17:04 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:20 +0000 (09:19 +0200)
commit76201b6354bb3aa31c7ba2bd42b9cbb8dda71c44
treef22efeadc70c3ca17cdf5ddb4cfd41d1f5a36d33
parent8242c9f35ae77ca21e6cf79827787789a988f44c
ceph: allow connecting to mds whose rank >= mdsmap::m_max_mds

mdsmap::m_max_mds is the expected count of active mds. It's not the
max rank of active mds. User can decrease mdsmap::m_max_mds, but does
not stop mds whose rank >= mdsmap::m_max_mds.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/debugfs.c
fs/ceph/mds_client.c
fs/ceph/mdsmap.c
include/linux/ceph/mdsmap.h