Skip to content

Commit 6fa7272

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client
Pull Ceph RBD fix from Sage Weil. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client: rbd: end I/O the entire obj_request on error
2 parents 64887b6 + 082a75d commit 6fa7272

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/block/rbd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2264,6 +2264,11 @@ static bool rbd_img_obj_end_request(struct rbd_obj_request *obj_request)
22642264
result, xferred);
22652265
if (!img_request->result)
22662266
img_request->result = result;
2267+
/*
2268+
* Need to end I/O on the entire obj_request worth of
2269+
* bytes in case of error.
2270+
*/
2271+
xferred = obj_request->length;
22672272
}
22682273

22692274
/* Image object requests don't own their page array */

0 commit comments

Comments
 (0)