Re: [PATCH 6/6] blk-mq: manage hctx map via xarray

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

 



On Wed, Mar 02, 2022 at 10:06:04AM +0800, Ming Lei wrote:
> I did considered xa_for_each(), but it requires rcu read lock.

No, I doesn't.  It just takes a RCU lock internally.

> Also queue_for_each_hw_ctx() is supposed to not run in fast path,
> meantime xa_load() is lightweight enough too, so repeated xa_load()
> is fine here.

I'd rather have the clarity of the proper iterators.



[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