]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: avoid picking MDS that is not active
authorSage Weil <sage@newdream.net>
Sat, 22 Jan 2011 05:16:46 +0000 (21:16 -0800)
committerSage Weil <sage@newdream.net>
Tue, 25 Jan 2011 16:16:37 +0000 (08:16 -0800)
commitd5271b8c26a6c5ccb791e5db0fd98cb02070da2e
treebde3d1bf8d6a665b14e2b86e82506c8c7b3b0657
parent8fe99b79f12b3058965c8d1026d4d29efc052ee0
ceph: avoid picking MDS that is not active

Ignore replication or auth frag data if it indicates an MDS that is not
active.  This can happen if the MDS shuts down and the client has stale
data about the namespace distribution across the MDS cluster.  If that's
the case, fall back to directing the request based on the auth cap (which
should always be accurate).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c