]> www.infradead.org Git - users/hch/misc.git/commit
block: remove 'req->part' check for stats accounting
authorJens Axboe <axboe@kernel.dk>
Thu, 3 Oct 2024 13:26:12 +0000 (07:26 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:14:56 +0000 (08:14 -0600)
commitfd0a63bcda40c09463f31b9401dbb0cb01c51674
tree0e6222f4d492601caa16d001da075c6b9da5deba
parent2c50ec98fc6cab28df35e0a22a2bcc7957d9d0ab
block: remove 'req->part' check for stats accounting

If RQF_IO_STAT is set, then accounting is enabled. There's no need to
further gate this on req->part being set or not, RQF_IO_STAT should
never be set if accounting is not being done for this request.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c