]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: export passthrough stats enabled
authorKeith Busch <kbusch@kernel.org>
Thu, 28 May 2026 01:00:40 +0000 (18:00 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 May 2026 15:35:38 +0000 (09:35 -0600)
commitb7f40ab50190e2500c3c297d15e00040dca47feb
tree4182f75ebd82b5b4f489222226f52605505ebfd5
parenta7d8eaee7fafe2e2c58aef9579bdef778c144029
block: export passthrough stats enabled

A user can enable io accounting for passthrough requests, so export the
helper that checks if the request should be tracked. This will enable
stacking drivers to to report iostats for passthrough workloads. Since
the stacking request_queue may not be the one providing the request, the
API has to add a parameter for the caller to specify which one to check.

Reviewed-by: Nilay Shroff <nilay@linux.ibm.com>
Reviewed-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260528010041.1533124-2-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
include/linux/blk-mq.h