[PATCHv6 1/8] block: expose blk_stat_{enable,disable}_accounting() to drivers

John Garry john.g.garry at oracle.com
Thu May 21 05:06:21 PDT 2026


On 20/05/2026 19:20, Nilay Shroff wrote:
> The functions blk_stat_enable_accounting() and
> blk_stat_disable_accounting() are currently exported, but their
> prototypes are only defined in a private header. Move these prototypes
> into a common header so that block drivers can directly use these APIs.
> 
> Reviewed-by: Hannes Reinecke<hare at suse.de>
> Reviewed-by: Sagi Grimberg<sagi at grimberg.me>
> Signed-off-by: Nilay Shroff<nilay at linux.ibm.com>
> ---
>   block/blk-stat.h       | 4 ----
>   include/linux/blk-mq.h | 4 ++++

struct request_queue comes from blkdev.h, so maybe that would be a more 
appropriate place to locate the prototype.

Thanks,
John



More information about the Linux-nvme mailing list