Re: hash: failed on concurrent iterating.

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

 



> -----Original Message-----
> From: libvir-list-bounces@xxxxxxxxxx [mailto:libvir-list-bounces@xxxxxxxxxx]
> On Behalf Of Michal Privoznik
> Sent: Wednesday, April 04, 2018 5:21 PM
> To: zhangzijian (Cloud); libvir-list@xxxxxxxxxx
> Cc: huangyong (Cloud)
> Subject: Re:  hash: failed on concurrent iterating.
> 
> On 04/04/2018 11:10 AM, Zhangzijian wrote:
> > In function 'virHashForEach/virHashSearch', 'table->iterating' prevent
> concurrent iterating. But most caller evoke it, after hold a read lock.
> > This will lead the second caller failed to iterate the table. So, the caller should
> hold a write lock, then iterate the table.
> 
> Looks like there's another thread discussing this issue:
> 

Yes, the issue is still exist in v4.2.0.
Is it applicable to using write lock instead?

> https://www.redhat.com/archives/libvirt-users/2018-April/msg00004.html
> 
> Michal
> 
> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux