]> xenbits.xensource.com Git - libvirt.git/commit
storage_driver: Mark volume as 'in use' for some operations
authorMichal Privoznik <mprivozn@redhat.com>
Sat, 18 Aug 2018 16:42:07 +0000 (18:42 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 4 Sep 2018 08:11:40 +0000 (10:11 +0200)
commitf1ae8ecc9082061785349c4a405ba5bee4594fa6
tree17de5ab03d612b406eb3be713a1d35ec90c63196
parentbc9a80161ac13abb08b2ce4628f59f6409104acd
storage_driver: Mark volume as 'in use' for some operations

There are few operations in the storage driver that read/write
data onto volumes. Such operations can take very long time to
finish. During that time the storage pool object is locked which
has bad performance impacts (other threads can't fetch its XML
for instance). This commit prepares the storage driver for
releasing the lock during those operations (downloadVol,
uploadVol, wipeVol).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_driver.c