aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Wang <liwang@ubuntukylin.com>2013-11-27 09:28:14 -0500
committerSage Weil <sage@inktank.com>2013-12-13 12:13:29 -0500
commit37c89bde5d402c25211a9e31e3166067f85aa31b (patch)
tree0aba7c4f019102f308a5f9c01cea5f5136242721
parentf36132a75aafd0086aeb0eacf348654138d56b49 (diff)
ceph: Add necessary clean up if invalid reply received in handle_reply()
Wake up possible waiters, invoke the call back if any, unregister the request Signed-off-by: Li Wang <liwang@ubuntukylin.com> Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com> Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--net/ceph/osd_client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 2b4b32aaa893..a17eaae820f8 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -1581,6 +1581,13 @@ done:
1581 return; 1581 return;
1582 1582
1583bad_put: 1583bad_put:
1584 req->r_result = -EIO;
1585 __unregister_request(osdc, req);
1586 if (req->r_callback)
1587 req->r_callback(req, msg);
1588 else
1589 complete_all(&req->r_completion);
1590 complete_request(req);
1584 ceph_osdc_put_request(req); 1591 ceph_osdc_put_request(req);
1585bad_mutex: 1592bad_mutex:
1586 mutex_unlock(&osdc->request_mutex); 1593 mutex_unlock(&osdc->request_mutex);