]> xenbits.xensource.com Git - libvirt.git/commit
storage: Drop and reacquire pool obj lock in some backends
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 24 May 2019 14:35:47 +0000 (16:35 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 23 Aug 2019 07:32:43 +0000 (09:32 +0200)
commit985f035fbfd074e71ccc1e3cb1177482d77e1537
treec415afcf7c2f19c675e8b95b0dbc216ec162b9e8
parent13284a6b83ef0794b2c89492dc2d672caad66c2d
storage: Drop and reacquire pool obj lock in some backends

https://bugzilla.redhat.com/show_bug.cgi?id=1711789

Starting up or building some types of pools may take a very long
time (e.g. a misconfigured NFS). Holding the pool object locked
throughout the whole time hurts concurrency, e.g. if there's
another thread that is listing all the pools.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_backend_disk.c
src/storage/storage_backend_fs.c
src/storage/storage_backend_logical.c
src/storage/storage_backend_vstorage.c
src/storage/storage_backend_zfs.c