[libvirt] hash: failed on concurrent iterating.

Zhangzijian zhang.zijian at h3c.com
Wed Apr 4 09:10:15 UTC 2018


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.




More information about the libvir-list mailing list