aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2014-07-13 22:48:29 -0400
committerYan, Zheng <zheng.z.yan@intel.com>2014-07-13 22:49:15 -0400
commit51da8e8c6f687ff94d4a7d39633f7547d944321f (patch)
treefc12bec9ed8e59357bb5617d0af9a4cfb081fb98
parentf5f186474335ac385def69564542e6e4c6a3a8bd (diff)
ceph: reset r_resend_mds after receiving -ESTALE
this makes __choose_mds() choose mds according caps Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
-rw-r--r--fs/ceph/mds_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 0225523297c3..fd8d7ca80e75 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -2254,6 +2254,7 @@ static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg)
2254 */ 2254 */
2255 if (result == -ESTALE) { 2255 if (result == -ESTALE) {
2256 dout("got ESTALE on request %llu", req->r_tid); 2256 dout("got ESTALE on request %llu", req->r_tid);
2257 req->r_resend_mds = -1;
2257 if (req->r_direct_mode != USE_AUTH_MDS) { 2258 if (req->r_direct_mode != USE_AUTH_MDS) {
2258 dout("not using auth, setting for that now"); 2259 dout("not using auth, setting for that now");
2259 req->r_direct_mode = USE_AUTH_MDS; 2260 req->r_direct_mode = USE_AUTH_MDS;