From: Sam Lang <samlang@xxxxxxxxx> This patch will cause inprogress client operations to the MDS server to be kicked if the connection to the MDS server is dropped. --- src/client/Client.cc | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 78d12c8e..1f37dfc 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -6907,6 +6907,18 @@ bool Client::ms_handle_reset(Connection *con) ldout(cct, 0) << "ms_handle_reset on " << con->get_peer_addr() << dendl; Mutex::Locker l(client_lock); objecter->ms_handle_reset(con); + + // look for mds that has this connection and kick associated requests + for(map<int, MetaSession*>::iterator it = mds_sessions.begin(); + it != mds_sessions.end(); + it++) + { + if((*it).second->inst.addr.probably_equals(con->get_peer_addr())) + { + kick_requests((*it).first, true); + break; + } + } return false; } -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html