[libvirt] [PATCH 1/1] Update nodedev scsi_host data before use
Eric Blake
eblake at redhat.com
Thu Jun 3 13:49:36 UTC 2010
On 06/02/2010 10:04 PM, David Allan wrote:
> * It appears that the udev event for HBA creation arrives before the
> associated sysfs data is fully populated, resulting in bogus data
> for the nodedev entry until the entry is refreshed. This problem is
> particularly troublesome when creating NPIV vHBAs because it results
> in libvirt failing to find the newly created adapter and waiting for
> the full timeout period before erroneously failing the create
> operation. This patch forces an update before any attempt to use
> any scsi_host nodedev entry.
> ---
> src/node_device/node_device_driver.c | 19 +++----------------
> 1 files changed, 3 insertions(+), 16 deletions(-)
ACK. It's always nice when a net reduction in lines solves a race
condition.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100603/6d013fae/attachment-0001.sig>
More information about the libvir-list
mailing list