Re: [PATCH RFC] sbitmap: Use lock/unlock atomic bitops

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

 



On Tue, Feb 27, 2018 at 10:14:04AM -0800, Tejun Heo wrote:
> Hello, Omar.
> 
> On Mon, Feb 26, 2018 at 02:14:44PM -0800, Omar Sandoval wrote:
> > >  	wake_index = atomic_read(&sbq->wake_index);
> > >  	for (i = 0; i < SBQ_WAIT_QUEUES; i++) {
> > >  		struct sbq_wait_state *ws = &sbq->ws[wake_index];
> > 
> > So I think we want a patch for the test_and_set_bit_lock() and
> > clear_bit_unlock(), but the rest should stay as-is.
> 
> Yeah, that makes sense to me.  Would you be interested in updating the
> patch?

Yup, I'll send it up. Thanks, Tejun!



[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