]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Update nodedev scsi_host data before use
authorDavid Allan <dallan@redhat.com>
Thu, 3 Jun 2010 03:24:51 +0000 (23:24 -0400)
committerDavid Allan <dallan@redhat.com>
Thu, 3 Jun 2010 14:54:39 +0000 (10:54 -0400)
commit2874a683e91808cd0936d658705fb2f24a1fe247
treee453bf92891c4385c9e237350eb5b6ab4c0d8f7f
parentd3e43bad98e3f95408203859bb4165f3b9b10d5b
Update nodedev scsi_host data before use

* 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