<font size=2 face="Times New Roman">Hi Martin,</font>
<br>
<br><font size=2>〉</font><font size=2 face="Times New Roman">But once
you start merging, you'd rather be prepared for</font>
<br><font size=2>〉</font><font size=2 face="Times New Roman">several
events for the same phys device, too.</font>
<br>
<br><font size=2 face="Times New Roman">We can base on such a threshold
that there is no repeat uevents from the same sd device,</font>
<br><font size=2 face="Times New Roman">otherwise, we pause doing merger,
and kick uevent processing thread</font><font size=2 face="sans-serif">
</font><font size=2 face="Times New Roman">to process the merged uevents.</font>
<div>
<br><font size=2 face="Times New Roman">Regards,</font>
<br><font size=2 face="Times New Roman">Tang</font>
<br>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">发件人:    
    </font><font size=1 face="sans-serif">Martin Wilck
<mwilck@suse.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">收件人:    
    </font><font size=1 face="sans-serif">tang.junhui@zte.com.cn,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">抄送:    
   </font><font size=1 face="sans-serif">dm-devel@redhat.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">日期:    
    </font><font size=1 face="sans-serif">2016/11/18
16:38</font>
<br><font size=1 color=#5f5f5f face="sans-serif">主题:    
   </font><font size=1 face="sans-serif">Re: [dm-devel]
Improve processing efficiency for addition and deletion of multipath devices</font>
<br><font size=1 color=#5f5f5f face="sans-serif">发件人:    
   </font><font size=1 face="sans-serif">dm-devel-bounces@redhat.com</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Fri, 2016-11-18 at 16:24 +0800, tang.junhui@zte.com.cn
wrote:<br>
> Hi Martin, <br>
> <br>
> In your case, my action is: <br>
> 1) merger uevents 1) 2) to one uevent "add sda sdb", and
process them<br>
> togother <br>
<br>
This will fail because sdb is non-existent at the time you try - no?<br>
<br>
> Though the processing efficiency in such scenario is lower than<br>
> yours, but it is simple and reliable,<br>
> more importantly, Martin, you still focus on such special scene,<br>
> which I concerned is like this: <br>
<br>
[...]<br>
<br>
I understand what you're concerned with. I just think we need to do<br>
both. I agree that many events for many different devices are more<br>
likely. But once you start merging, you'd rather be prepared for<br>
several events for the same phys device, too.<br>
<br>
Martin<br>
<br>
-- <br>
Dr. Martin Wilck <mwilck@suse.com>, Tel. +49 (0)911 74053 2107<br>
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton<br>
HRB 21284 (AG Nürnberg)<br>
<br>
--<br>
dm-devel mailing list<br>
dm-devel@redhat.com<br>
</font></tt><a href="https://www.redhat.com/mailman/listinfo/dm-devel"><tt><font size=2>https://www.redhat.com/mailman/listinfo/dm-devel</font></tt></a>
<br></div>