summaryrefslogtreecommitdiffstats
path: root/block/bio.c
diff options
context:
space:
mode:
authorDennis Zhou2018-12-05 18:10:32 +0100
committerJens Axboe2018-12-08 06:26:37 +0100
commite439bedf6b24264f620cc05627e23a90054bde41 (patch)
treef6c565620e5b0492b663d7e980f221c8f5dffcad /block/bio.c
parentblkcg: associate blkg when associating a device (diff)
downloadkernel-qcow2-linux-e439bedf6b24264f620cc05627e23a90054bde41.tar.gz
kernel-qcow2-linux-e439bedf6b24264f620cc05627e23a90054bde41.tar.xz
kernel-qcow2-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/bio.c')
-rw-r--r--block/bio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/bio.c b/block/bio.c
index 1e852ab904aa..90089124b512 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -611,6 +611,7 @@ void __bio_clone_fast(struct bio *bio, struct bio *bio_src)
bio->bi_io_vec = bio_src->bi_io_vec;
bio_clone_blkcg_association(bio, bio_src);
+ blkcg_bio_issue_init(bio);
}
EXPORT_SYMBOL(__bio_clone_fast);