Re: [PATCH] nbd: Fix races introduced by nbd_index_mutex scope reduction

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

 



On Wed, Aug 25, 2021 at 04:18:47PM +0200, Christoph Hellwig wrote:
> On Wed, Aug 25, 2021 at 10:38:00PM +0900, Tetsuo Handa wrote:
> > I guess you might want below diff, for reinit_completion() immediately after
> > complete_all() likely resets completion count before all threads sleeping at
> > wait_for_completion_timeout() check the completion count.
> > Use of simple sequence count will be robuster.
> 
> Yes, this is very simple to what I have locally.

s/simple/similar/



[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