aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 7ae83a1e2acf..03c5a64b6ccb 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1846,6 +1846,9 @@ void blk_start_request(struct request *req)
1846 * resid_len to full count and add the timeout handler. 1846 * resid_len to full count and add the timeout handler.
1847 */ 1847 */
1848 req->resid_len = blk_rq_bytes(req); 1848 req->resid_len = blk_rq_bytes(req);
1849 if (unlikely(blk_bidi_rq(req)))
1850 req->next_rq->resid_len = blk_rq_bytes(req->next_rq);
1851
1849 blk_add_timer(req); 1852 blk_add_timer(req);
1850} 1853}
1851EXPORT_SYMBOL(blk_start_request); 1854EXPORT_SYMBOL(blk_start_request);