]> xenbits.xensource.com Git - libvirt.git/commit
storage: Don't do wait loops from VolLookupByPath
authorCole Robinson <crobinso@redhat.com>
Sun, 21 Oct 2012 16:53:20 +0000 (12:53 -0400)
committerCole Robinson <crobinso@redhat.com>
Mon, 22 Oct 2012 20:15:12 +0000 (16:15 -0400)
commit77eff5eeb2d2aada3c670d325d04a35b54428988
treed6148179905c52ed56581ec645935054d40b6a70
parent18d0632dc7c4b7c0930da32ed5a64f971c028452
storage: Don't do wait loops from VolLookupByPath

virStorageVolLookupByPath is an API call that virt-manager uses
quite a bit when dealing with storage. This call use BackendStablePath
which has several usleep() heuristics that can be tripped up
and hang virt-manager for a while.

Current example: an empty mpath pool pointing to /dev/mapper makes
_any_ calls to virStorageVolLookupByPath take 5 seconds.

The sleep heuristics are actually only needed in certain cases
when we are waiting for new storage to appear, so let's skip the
timeout steps when calling from LookupByPath.
src/storage/storage_backend.c
src/storage/storage_backend.h
src/storage/storage_backend_disk.c
src/storage/storage_backend_scsi.c
src/storage/storage_driver.c