Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
		if (ret) {
			obj_req->result = ret;
			obj_req->xferred = 0;
			return true;
		}
		return false;