diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 2b4b32aaa893b3117043e6a218fcde6c58f0aff4..a17eaae820f8b5d83eda89bc2c54ab4b55d547e0 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -1581,6 +1581,13 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg, return; bad_put: + req->r_result = -EIO; + __unregister_request(osdc, req); + if (req->r_callback) + req->r_callback(req, msg); + else + complete_all(&req->r_completion); + complete_request(req); ceph_osdc_put_request(req); bad_mutex: mutex_unlock(&osdc->request_mutex);