]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: udev: Hook up virFileWaitForAccess to work around uevent race
authorErik Skultety <eskultet@redhat.com>
Tue, 20 Jun 2017 14:15:22 +0000 (16:15 +0200)
committerErik Skultety <eskultet@redhat.com>
Thu, 19 Oct 2017 06:54:53 +0000 (08:54 +0200)
commit1af45804088c5b1f19fca8631821ba5ae94cf3dd
treeade137bdbe0b970dc0d2bdfeb637018f051a6688
parentcaf26412b691bf6a7cb34b9db837b92a4e6eb689
nodedev: udev: Hook up virFileWaitForAccess to work around uevent race

If we find ourselves in the situation that the 'add' uevent has been
fired earlier than the sysfs tree for a device was created, we should
use the best-effort approach and give kernel some predetermined amount
of time, thus waiting for the attributes to be ready rather than
discarding the device from our device list forever. If those don't appear
in the given time frame, we need to move on, since libvirt can't wait
indefinitely.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1463285

Signed-off-by: Erik Skultety <eskultet@redhat.com>
src/node_device/node_device_udev.c