diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2025-09-10 14:30:42 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-09-10 05:23:45 -0600 |
| commit | 1f963bdd6420b6080bcfd0ee84a75c96f35545a6 (patch) | |
| tree | 82fe3515ebee46f2f88237ec5ad1eb58df73510c /block/blk-core.c | |
| parent | 1733e88874838ddebf7774440c285700865e6b08 (diff) | |
| download | linux-1f963bdd6420b6080bcfd0ee84a75c96f35545a6.tar.gz linux-1f963bdd6420b6080bcfd0ee84a75c96f35545a6.tar.bz2 linux-1f963bdd6420b6080bcfd0ee84a75c96f35545a6.zip | |
block: initialize bio issue time in blk_mq_submit_bio()
bio->issue_time_ns is only used by blk-iolatency, which can only be
enabled for rq-based disk, hence it's not necessary to initialize
the time for bio-based disk.
Meanwhile, if bio is split by blk_crypto_fallback_split_bio_if_needed(),
the issue time is not initialized for new split bio, this can be fixed
as well.
Noted the next patch will optimize better that bio issue time will
only be used when blk-iolatency is really enabled by the disk.
Fixes: 488f6682c832 ("block: blk-crypto-fallback for Inline Encryption")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-core.c')
| -rw-r--r-- | block/blk-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 4201504158a1..83c262a3dfd9 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -728,7 +728,6 @@ static void __submit_bio_noacct_mq(struct bio *bio) void submit_bio_noacct_nocheck(struct bio *bio) { blk_cgroup_bio_start(bio); - blkcg_bio_issue_init(bio); if (!bio_flagged(bio, BIO_TRACE_COMPLETION)) { trace_block_bio_queue(bio); |
