]> www.infradead.org Git - users/hch/misc.git/commit
block: move issue side time stamping to blk_account_io_start()
authorJens Axboe <axboe@kernel.dk>
Sun, 6 Oct 2024 22:52:33 +0000 (16:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:15:17 +0000 (08:15 -0600)
commit746fc7e9d459ae3731104d719e22b13829f71e55
tree4f60a7792fa97a6b5ad0cb7c0f78d1f3c947fadd
parent148e6968f6789e42a318ce7d11ea506d75567c1d
block: move issue side time stamping to blk_account_io_start()

It's known needed at that point, and it's cleaner to just assign it
there rather than rely on it being reliably set before hitting the
IO accounting. Hence, move it out of blk_mq_rq_time_init(), which is
now only doing the allocation side timing.

While at it, get rid of the '0' time passing to blk_mq_rq_time_init(),
just pass in blk_time_get_ns() for the two cases where 0 is being
explicitly passed in. The rest pass in the previously cached allocation
time.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c