blk-mq: do not include passthrough requests in I/O accounting
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Mar 2022 05:51:47 +0000 (06:51 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Mar 2022 02:39:52 +0000 (19:39 -0700)
commit41fa722239b46f0c033da94746212344175cdaa0
treec943cea6053e77f7d29cc43ab102171e4dfe3780
parent4e5cc99e1e485954a9c09872e0eeea570fb2b5a5
blk-mq: do not include passthrough requests in I/O accounting

I/O accounting buckets I/O into the read/write/discard categories into
which passthrough I/O does not fit at all.  It also accounts to the
block_device, which may not even exist for passthrough I/O.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220308055200.735835-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h