[RFC PATCHv3 1/6] block: expose blk_stat_{enable,disable}_accounting() to drivers

Christoph Hellwig hch at lst.de
Wed Oct 29 02:39:34 PDT 2025


On Mon, Oct 27, 2025 at 02:59:35PM +0530, 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.

That's because they are only used by I/O scheduler, which are the only
valid users.  I don't think drivers should touch this, but I'll stay
tuned..




More information about the Linux-nvme mailing list