projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f36132a
)
ceph: Add necessary clean up if invalid reply received in handle_reply()
author
Li Wang
<
[email protected]
>
Wed, 27 Nov 2013 14:28:14 +0000
(22:28 +0800)
committer
Sage Weil
<
[email protected]
>
Fri, 13 Dec 2013 17:13:29 +0000
(09:13 -0800)
Wake up possible waiters, invoke the call back if any, unregister the request
Signed-off-by: Li Wang <
[email protected]
>
Signed-off-by: Yunchuan Wen <
[email protected]
>
Signed-off-by: Sage Weil <
[email protected]
>
net/ceph/osd_client.c
patch
|
blob
|
history
diff --git
a/net/ceph/osd_client.c
b/net/ceph/osd_client.c
index 2b4b32aaa893b3117043e6a218fcde6c58f0aff4..a17eaae820f8b5d83eda89bc2c54ab4b55d547e0 100644
(file)
--- a/
net/ceph/osd_client.c
+++ b/
net/ceph/osd_client.c
@@
-1581,6
+1581,13
@@
done:
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);