[libvirt] hash: failed on concurrent iterating.

Michal Privoznik mprivozn at redhat.com
Wed Apr 4 09:21:18 UTC 2018


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:

https://www.redhat.com/archives/libvirt-users/2018-April/msg00004.html

Michal




More information about the libvir-list mailing list