Re: Improve processing efficiency for addition and deletion of multipath devices

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

 



On Fri, Nov 18, 2016 at 09:30:57AM +0100, Martin Wilck wrote:
> On Fri, 2016-11-18 at 16:24 +0800, tang.junhui@xxxxxxxxxx wrote:
> > Hi Martin, 
> > 
> > In your case, my action is: 
> > 1) merger uevents 1) 2) to one uevent "add sda sdb", and process them
> > togother 
> 
> This will fail because sdb is non-existent at the time you try - no?

Yes. If we get a cluster of events for a device, and the last event is a
remove event, we don't need to precess them. Just like you mention,
after that remove event is sent by udev, the device is gone.  There is
nothing that multipathd could do with it even if it wanted to. So there
is no point in trying the add and change event processing, since we
already know that they will fail.

-Ben

> 
> > Though the processing efficiency in such scenario is lower than
> > yours, but it is simple and reliable,
> > more importantly, Martin, you still focus on such special scene,
> > which I concerned is like this: 
> 
> [...]
> 
> I understand what you're concerned with. I just think we need to do
> both. I agree that many events for many different devices are more
> likely. But once you start merging, you'd rather be prepared for
> several events for the same phys device, too.
> 
> Martin
> 
> -- 
> Dr. Martin Wilck <mwilck@xxxxxxxx>, Tel. +49 (0)911 74053 2107
> SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton
> HRB 21284 (AG Nürnberg)
> 
> --
> dm-devel mailing list
> dm-devel@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/dm-devel

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel




[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux