Re: [PATCH v5 7/8] scsi: Set QUEUE_FLAG_PREEMPT_ONLY while quiesced

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

 



On Wed, 2017-10-04 at 09:06 +0200, Christoph Hellwig wrote:
> > +	/*
> > +	 * Ensure that the effect of blk_set_preempt_only() is globally
> > +	 * visible before unfreezing the queue.
> > +	 */
> > +	if (err == 0)
> > +		synchronize_rcu();
> 
> I don't understand why we'd need this.  The flag is set both under
> a spinlock and a mutex that are unlocked right after.  That should
> gurantee all the visibility we'll need.

Hello Christoph,

That synchronize_rcu() call follows the example in the third figure in
https://lwn.net/Articles/573497/. I will verify whether that synchronize_rcu()
call can be left out.

Bart.




[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