Commit 356889c4 authored by Ilya Dryomov's avatar Ilya Dryomov

rbd: clear ->xferred on error from rbd_obj_issue_copyup()

Otherwise the assert in rbd_obj_end_request() is triggered.

Fixes: 3da691bf ("rbd: new request handling code")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 0b51c9d1
...@@ -2585,6 +2585,7 @@ static bool rbd_obj_handle_write(struct rbd_obj_request *obj_req) ...@@ -2585,6 +2585,7 @@ static bool rbd_obj_handle_write(struct rbd_obj_request *obj_req)
ret = rbd_obj_issue_copyup(obj_req, obj_req->xferred); ret = rbd_obj_issue_copyup(obj_req, obj_req->xferred);
if (ret) { if (ret) {
obj_req->result = ret; obj_req->result = ret;
obj_req->xferred = 0;
return true; return true;
} }
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment