aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index a2d97de1a12c..e3f7e6a3a095 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -1783,9 +1783,10 @@ void blk_start_request(struct request *req)
1783 blk_dequeue_request(req); 1783 blk_dequeue_request(req);
1784 1784
1785 /* 1785 /*
1786 * We are now handing the request to the hardware, add the 1786 * We are now handing the request to the hardware, initialize
1787 * timeout handler. 1787 * resid_len to full count and add the timeout handler.
1788 */ 1788 */
1789 req->resid_len = blk_rq_bytes(req);
1789 blk_add_timer(req); 1790 blk_add_timer(req);
1790} 1791}
1791EXPORT_SYMBOL(blk_start_request); 1792EXPORT_SYMBOL(blk_start_request);