Skip to contentSkip to conversation

Timeout mechanism in ceph client tick

PATCH Z Zhang 1 participant 1 message Jul 2, 2015

lore
Share & tools
lore

Z Zhang

author
#0 lore raw

Hi Guys,
By reading through ceph client codes, there is timeout mechanism in tick when doing mount. Recently we met some client requests to mds spending long time to reply when doing massive test to cephfs. And if we want cephfs user to know the timeout instead of waiting for the reply, can we make following change to leverage such timeout mechanism? Is there any other concern that we didn't enable client request's timeout in tick after mount succeeds? If this works, we can either use client_mount_timeout, or introduce another parameter for normal client request's timeout value.

src/client/Client.ccindex 63a9faa..91a8cc9 100644--- a/src/client/Client.cc+++ b/src/client/Client.cc@@ -4850,7 +4850,7 @@ void Client::tick() utime_t now = ceph_clock_now(cct); - if (!mounted && !mds_requests.empty()) {+ if (!mds_requests.empty()) { MetaRequest *req = mds_requests.begin()->second; if (req->op_stamp + cct->_conf->client_mount_timeout < now) { req->aborted = true; renamed from src/client/Client.cc +0 -0

Thanks.
David Zhang

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com