Re: [PATCH V4 blktests] loop: Detect a race condition between loop detach and open

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

 



On Jun 06, 2024 / 09:11, Gulam Mohamed wrote:
> Hi Shinichiro,
> 
> > -----Original Message-----
> > From: Shinichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>
> > Sent: Thursday, June 6, 2024 11:33 AM
> > To: Gulam Mohamed <gulam.mohamed@xxxxxxxxxx>
> > Cc: linux-block@xxxxxxxxxxxxxxx; chaitanyak@xxxxxxxxxx
> > Subject: Re: [PATCH V4 blktests] loop: Detect a race condition between loop
> > detach and open
> > 
> > On Jun 05, 2024 / 16:18, Gulam Mohamed wrote:
> > > When one process opens a loop device partition and another process
> > > detaches it, there will be a race condition due to which stale loop
> > > partitions are created causing IO errors. This test will detect the race.
> > >
> > > Signed-off-by: Gulam Mohamed <gulam.mohamed@xxxxxxxxxx>
> > > ---
> > > v4<-v3:
> > > 1. Resolved formatting issues
> > > 2. Using long options for commands instead of short options
> > 
> > Thank you for the v4 patch. Looks good to me. Before applying it, I will wait
> > for some more days in case anyone has other comments.
> 
> Thank you very much for reviewing all these versions.

FYI, I've applied this patch. Please note that I folded in a minor change.
When I took another look in the patch, I noticed that $TMPDIR was referred out
of the test() function. Actually, $TMPDIR works only within test(), so I moved
it into test(). Anyway, thank you for this work.





[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