]> www.infradead.org Git - users/hch/misc.git/commit
block: move iostat check into blk_acount_io_start()
authorJens Axboe <axboe@kernel.dk>
Wed, 2 Oct 2024 19:19:48 +0000 (13:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:14:56 +0000 (08:14 -0600)
commit8933805623fafc0e276ddd8110672068c5bd9763
treeb3d348a7f7bfb5d79ed31d9a925b97eb730b49a7
parent42f7652d3eb527d03665b09edac47f85fb600924
block: move iostat check into blk_acount_io_start()

Rather than have blk_do_io_stat() check for both RQF_IO_STAT and whether
the request is a passthrough requests every time, move both of those
checks into blk_account_io_start(). Then blk_do_io_stat() can be reduced
to just checking for RQF_IO_STAT.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h