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

Otherwise the assert in rbd_obj_end_request() is triggered.

Fixes: 3da691bf43 ("rbd: new request handling code")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
Ilya Dryomov 2019-03-01 12:06:24 +01:00
parent 0b51c9d15a
commit 356889c49d
1 changed files with 1 additions and 0 deletions

View File

@ -2585,6 +2585,7 @@ again:
ret = rbd_obj_issue_copyup(obj_req, obj_req->xferred);
if (ret) {
obj_req->result = ret;
obj_req->xferred = 0;
return true;
}
return false;