]> git.ipfire.org Git - thirdparty/linux.git/commit
block: initialize bio issue time in blk_mq_submit_bio()
authorYu Kuai <yukuai3@huawei.com>
Wed, 10 Sep 2025 06:30:42 +0000 (14:30 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Sep 2025 11:23:45 +0000 (05:23 -0600)
commit1f963bdd6420b6080bcfd0ee84a75c96f35545a6
tree82fe3515ebee46f2f88237ec5ad1eb58df73510c
parent1733e88874838ddebf7774440c285700865e6b08
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>
block/blk-cgroup.h
block/blk-core.c
block/blk-merge.c
block/blk-mq.c