]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStoragePoolObjRemove: Don't unlock pool object upon return
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 24 May 2019 14:35:37 +0000 (16:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 22 Aug 2019 15:09:04 +0000 (17:09 +0200)
commitc63315789f91bede6abca133dc2e67d730bc0698
tree668984adb8943088e52b1fa2ec7c04937ca1da44
parent7cfb7aab573a031880a1f4fd20747843fea109ba
virStoragePoolObjRemove: Don't unlock pool object upon return

The fact that we're removing a pool object from the list of pools
doesn't mean we want to unlock it. It violates locking policy
too as object locking and unlocking is not done on the same
level.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/virstorageobj.c
src/storage/storage_driver.c
src/test/test_driver.c