Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: ceph: avoid picking MDS that is not active ceph: avoid immediate cap check after import ceph: fix flushing of caps vs cap import ceph: fix erroneous cap flush to non-auth mds ceph: fix cap_wanted_delay_{min,max} mount option initialization ceph: fix xattr rbtree search ceph: fix getattr on directory when using norbytes
This commit is contained in:
@@ -693,9 +693,11 @@ static int __choose_mds(struct ceph_mds_client *mdsc,
|
||||
dout("choose_mds %p %llx.%llx "
|
||||
"frag %u mds%d (%d/%d)\n",
|
||||
inode, ceph_vinop(inode),
|
||||
frag.frag, frag.mds,
|
||||
frag.frag, mds,
|
||||
(int)r, frag.ndist);
|
||||
return mds;
|
||||
if (ceph_mdsmap_get_state(mdsc->mdsmap, mds) >=
|
||||
CEPH_MDS_STATE_ACTIVE)
|
||||
return mds;
|
||||
}
|
||||
|
||||
/* since this file/dir wasn't known to be
|
||||
@@ -708,7 +710,9 @@ static int __choose_mds(struct ceph_mds_client *mdsc,
|
||||
dout("choose_mds %p %llx.%llx "
|
||||
"frag %u mds%d (auth)\n",
|
||||
inode, ceph_vinop(inode), frag.frag, mds);
|
||||
return mds;
|
||||
if (ceph_mdsmap_get_state(mdsc->mdsmap, mds) >=
|
||||
CEPH_MDS_STATE_ACTIVE)
|
||||
return mds;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user