]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: fix mdsmap decode when there are MDS's beyond max_mds
authorXiubo Li <xiubli@redhat.com>
Fri, 5 Nov 2021 09:34:18 +0000 (17:34 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Nov 2021 02:29:52 +0000 (03:29 +0100)
commit00803d49ff366be7e89a7c1b2c94815022a7ee96
tree7b04842e1c08dced2704a4d01c8efb2efd612c6e
parentb68515dc2078f08304c452bceaa05eb01d9b5115
ceph: fix mdsmap decode when there are MDS's beyond max_mds

If the max_mds is decreased in a cephfs cluster, there is a window
of time before the MDSs are removed. If a map goes out during this
period, the mdsmap may show the decreased max_mds but still shows
those MDSes as in or in the export target list.

Ensure that we don't fail the map decode in that case.

Cc: stable@vger.kernel.org
URL: https://tracker.ceph.com/issues/52436
Fixes: 47a61a51de28 ("ceph: reconnect to the export targets on new mdsmaps")
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/mdsmap.c