aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/mds_client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 6d953ab0ac06..8ef79266d064 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1872,8 +1872,11 @@ static int __do_request(struct ceph_mds_client *mdsc,
1872 int mds = -1; 1872 int mds = -1;
1873 int err = -EAGAIN; 1873 int err = -EAGAIN;
1874 1874
1875 if (req->r_err || req->r_got_result) 1875 if (req->r_err || req->r_got_result) {
1876 if (req->r_aborted)
1877 __unregister_request(mdsc, req);
1876 goto out; 1878 goto out;
1879 }
1877 1880
1878 if (req->r_timeout && 1881 if (req->r_timeout &&
1879 time_after_eq(jiffies, req->r_started + req->r_timeout)) { 1882 time_after_eq(jiffies, req->r_started + req->r_timeout)) {