Re: [PATCH] block: make queue stat accounting a reference

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 14, 2021 at 05:02:57PM -0700, Jens Axboe wrote:
> kyber turns on IO statistics when it is loaded on a queue, which means
> that even if kyber is then later unloaded, we're still stuck with stats
> enabled on the queue.
> 
> Change the account enabled from a bool to an int, and pair the enable call
> with the equivalent disable call. This ensures that stats gets turned off
> again appropriately.
> 
> Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>

Reviewed-by: Omar Sandoval <osandov@xxxxxx>



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux