• C
    storage: Don't do wait loops from VolLookupByPath · cbee5d8b
    Cole Robinson 提交于
    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.
    (cherry picked from commit 77eff5ee)
    cbee5d8b
storage_backend.c 49.6 KB