From: Rishabh Dave Date: Tue, 24 Apr 2018 08:55:44 +0000 (+0000) Subject: client: don't hang when MDS sessions are evicted X-Git-Tag: v13.1.0~12^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0f56c7e8e5f45112c5924797a7798b3c926d8492;p=ceph.git client: don't hang when MDS sessions are evicted Currently, a filesystem client hangs if a request is made after it's eviction. Prevent the client from hanging and allow a manual unmount in such cases. Fixes: http://tracker.ceph.com/issues/10915 Signed-off-by: Rishabh Dave --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 9f82607609b9..4b980d99afae 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -13512,6 +13512,7 @@ void Client::ms_handle_remote_reset(Connection *con) case MetaSession::STATE_OPEN: { + objecter->maybe_request_map(); /* to check if we are blacklisted */ const md_config_t *conf = cct->_conf; if (conf->client_reconnect_stale) { ldout(cct, 1) << "reset from mds we were open; close mds session for reconnect" << dendl;