]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: skip existing superblocks that are blocklisted or shut down when mounting
authorJeff Layton <jlayton@kernel.org>
Thu, 30 Sep 2021 12:33:13 +0000 (08:33 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 19 Oct 2021 07:36:06 +0000 (09:36 +0200)
commitd9c86417f9140f3f07c40f02462e81369c5356a6
treeb7129b5a5b28cb06307d8757f8efd203c229118b
parent9a90a4ad3df1ecb40c41849efe744f333f366654
ceph: skip existing superblocks that are blocklisted or shut down when mounting

Currently when mounting, we may end up finding an existing superblock
that corresponds to a blocklisted MDS client. This means that the new
mount ends up being unusable.

If we've found an existing superblock with a client that is already
blocklisted, and the client is not configured to recover on its own,
fail the match. Ditto if the superblock has been forcibly unmounted.

While we're in here, also rename "other" to the more conventional "fsc".

Cc: stable@vger.kernel.org
URL: https://bugzilla.redhat.com/show_bug.cgi?id=1901499
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/super.c