From: John Spray Date: Fri, 27 Nov 2015 13:23:29 +0000 (+0000) Subject: client: abort requests on session reject X-Git-Tag: v10.0.3~48^2~4^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d7991938182a7a4be515660d2b87e19e2b0a7345;p=ceph.git client: abort requests on session reject ...and by extension make the mount fail because the stat on the root will fail during mount. Signed-off-by: John Spray --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 9d4caf9f9973..f5127ebdaecb 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -1605,6 +1605,11 @@ int Client::make_request(MetaRequest *request, if (session->state == MetaSession::STATE_OPENING) { ldout(cct, 10) << "waiting for session to mds." << mds << " to open" << dendl; wait_on_context_list(session->waiting_for_open); + // Abort requests on REJECT from MDS + if (rejected_by_mds.count(mds)) { + request->aborted = true; + break; + } continue; }