Re: [PATCH] Fix race between --create and --incremental

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

 



On Wed, 30 Apr 2014 13:50:02 +0200 Artur Paszkiewicz
<artur.paszkiewicz@xxxxxxxxx> wrote:

> On 04/11/2014 12:08 PM, Artur Paszkiewicz wrote:
> > On 04/10/2014 02:33 AM, NeilBrown wrote:
> >> On Wed,  9 Apr 2014 17:14:59 +0200 Artur Paszkiewicz
> >> <artur.paszkiewicz@xxxxxxxxx> wrote:
> >>
> >>> This modifies locking in Create to eliminate a situation where
> >>> --incremental can assemble a device between write_init_super() and
> >>> add_disk(), which causes Create to fail.
> >>>
> >>> It sporadically occurs e.g. when metadata is written on a device,
> >>> causing an udev change event which triggers mdadm --incremental.
> >>>
> >>> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@xxxxxxxxx>
> >>
> >> Thanks for the patch.
> >> I've taken the liberty of changing it a little.  I didn't like the
> >> fact that
> >> we dropped the lock and then took it again.  It probably doesn't
> >> matter, but
> >> it feels cleaner to hold it the whole time.
> >>
> >> So this is the result.  Let me know if you disagree at all.
> > 
> > Hello Neil,
> > 
> > Your changes are OK, thanks.
> 
> Hello Neil,
> 
> Are you going to apply this patch?

I had, but I hadn't pushed it out.
I have now.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux