summaryrefslogtreecommitdiffstats
path: root/block/blk-iolatency.c
diff options
context:
space:
mode:
authorDennis Zhou <dennis@kernel.org>2018-12-05 12:10:32 -0500
committerJens Axboe <axboe@kernel.dk>2018-12-07 22:26:37 -0700
commite439bedf6b24264f620cc05627e23a90054bde41 (patch)
treef6c565620e5b0492b663d7e980f221c8f5dffcad /block/blk-iolatency.c
parent5cdf2e3fea5ee37b66842d76a9b06e6dac0b933d (diff)
downloadlinux-e439bedf6b24264f620cc05627e23a90054bde41.tar.gz
linux-e439bedf6b24264f620cc05627e23a90054bde41.tar.bz2
linux-e439bedf6b24264f620cc05627e23a90054bde41.zip
blkcg: consolidate bio_issue_init() to be a part of core
bio_issue_init among other things initializes the timestamp for an IO. Rather than have this logic handled by policies, this consolidates it to be on the init paths (normal, clone, bounce clone). Signed-off-by: Dennis Zhou <dennis@kernel.org> Acked-by: Tejun Heo <tj@kernel.org> Reviewed-by: Liu Bo <bo.liu@linux.alibaba.com> Reviewed-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-iolatency.c')
-rw-r--r--block/blk-iolatency.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c
index e6b47c255521..5a79f06a730d 100644
--- a/block/blk-iolatency.c
+++ b/block/blk-iolatency.c
@@ -478,8 +478,6 @@ static void blkcg_iolatency_throttle(struct rq_qos *rqos, struct bio *bio)
if (!blk_iolatency_enabled(blkiolat))
return;
- bio_issue_init(&bio->bi_issue, bio_sectors(bio));
-
while (blkg && blkg->parent) {
struct iolatency_grp *iolat = blkg_to_lat(blkg);
if (!iolat) {