]> www.infradead.org Git - users/hch/misc.git/commit
block: enable passthrough command statistics
authorKeith Busch <kbusch@kernel.org>
Mon, 7 Oct 2024 15:32:35 +0000 (08:32 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 22 Oct 2024 14:16:32 +0000 (08:16 -0600)
commit110234da18ab482f6f583d28eff26b9569bf5622
tree89dcc5b53015bcb0dea90d419785034a34ff9da5
parentd51c9cdfc214dde98afe45d95f7fb3b4ad11aa9e
block: enable passthrough command statistics

Applications using the passthrough interfaces for IO want to continue
seeing the disk stats. These requests had been fenced off from this
block layer feature. While the block layer doesn't necessarily know what
a passthrough command does, we do know the data size and direction,
which is enough to account for the command's stats.

Since tracking these has the potential to produce unexpected results,
the passthrough stats are locked behind a new queue flag that needs to
be enabled with the /sys/block/<dev>/queue/iostats_passthrough
attribute.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241007153236.2818562-1-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/ABI/stable/sysfs-block
block/blk-mq.c
block/blk-sysfs.c
include/linux/blkdev.h