aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/rbd.c')
-rw-r--r--drivers/block/rbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 812523330a78..ec6c5c6e1ac9 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -2264,6 +2264,11 @@ static bool rbd_img_obj_end_request(struct rbd_obj_request *obj_request)
2264 result, xferred); 2264 result, xferred);
2265 if (!img_request->result) 2265 if (!img_request->result)
2266 img_request->result = result; 2266 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;
2267 } 2272 }
2268 2273
2269 /* Image object requests don't own their page array */ 2274 /* Image object requests don't own their page array */