From: xie xingguo Date: Mon, 20 Jun 2016 02:17:15 +0000 (+0800) Subject: client: fast abort if underlying call to statfs failed X-Git-Tag: ses5-milestone5~581^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6cf48400faf104519f178b78dbaa57a3bd45a43e;p=ceph.git client: fast abort if underlying call to statfs failed Signed-off-by: xie xingguo --- diff --git a/src/client/Client.cc b/src/client/Client.cc index a6d5d383ab2..20ef94e5150 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -8882,6 +8882,13 @@ int Client::statfs(const char *path, struct statvfs *stbuf) int rval = cond.wait(); client_lock.Lock(); + if (rval < 0) { + ldout(cct, 1) << "underlying call to statfs returned error: " + << cpp_strerror(rval) + << dendl; + return rval; + } + memset(stbuf, 0, sizeof(*stbuf)); /*