summaryrefslogtreecommitdiff
path: root/block/blk-core.c
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-03-27 15:19:41 -0700
committerJens Axboe <axboe@fb.com>2017-03-28 08:02:20 -0600
commit88eeca495ba7de749ff253376ec6be19bb05368d (patch)
treee2ff562f879d0b581028ba71a028cda9319039e5 /block/blk-core.c
parentec80991d6fc2cb17abfc5427ac1512d2ccd40589 (diff)
downloadlinux-88eeca495ba7de749ff253376ec6be19bb05368d.tar.gz
linux-88eeca495ba7de749ff253376ec6be19bb05368d.tar.xz
block: track request size in blk_issue_stat
Currently there is no way to know the request size when the request is finished. Next patch will need this info. We could add extra field to record the size, but blk_issue_stat has enough space to record it, so this patch just overloads blk_issue_stat. With this, we will have 49bits to track time, which still is very long time. Signed-off-by: Shaohua Li <shli@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r--block/blk-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index ad388d5e309a..4234332aa23c 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2483,7 +2483,7 @@ void blk_start_request(struct request *req)
blk_dequeue_request(req);
if (test_bit(QUEUE_FLAG_STATS, &req->q->queue_flags)) {
- blk_stat_set_issue_time(&req->issue_stat);
+ blk_stat_set_issue(&req->issue_stat, blk_rq_sectors(req));
req->rq_flags |= RQF_STATS;
wbt_issue(req->q->rq_wb, &req->issue_stat);
}