[PATCH v7 1/9] block: expose blk_stat_{enable,disable}_accounting() to drivers

John Garry john.g.garry at oracle.com
Mon Aug 10 01:18:07 PDT 2026


> 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.

It might be worth mentioning somewhere why this is in blk-mq.h (which I 
believe is because that these accounting functions are only relevant to 
blk-mq queues now, which would not be guessed by the function names). 
But I don't feel too strongly about this.

> 
> 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>

Reviewed-by: John Garry <john.g.garry at oracle.com>




More information about the Linux-nvme mailing list