Re: [libvirt] [PATCH v1 02/11] virStoragePoolObjListForEach: Grab a reference for pool object

2019-08-19 Thread Ján Tomko
On Fri, May 24, 2019 at 04:35:38PM +0200, Michal Privoznik wrote: Turns out there's one callback that might remove a storage pool during its run: storagePoolUpdateAllState() call storagePoolUpdateStateCallback() which may call virStoragePoolUpdateInactive() which in turn may call

[libvirt] [PATCH v1 02/11] virStoragePoolObjListForEach: Grab a reference for pool object

2019-05-24 Thread Michal Privoznik
Turns out there's one callback that might remove a storage pool during its run: storagePoolUpdateAllState() call storagePoolUpdateStateCallback() which may call virStoragePoolUpdateInactive() which in turn may call virStoragePoolObjRemove(). Problem is that the UpdateStateCallback() sees a storage