[libvirt] [PATCH 0/3] Workaround mdev uevent race affecting node device driver

John Ferlan jferlan at redhat.com
Tue Jun 20 17:59:59 UTC 2017



On 06/20/2017 11:03 AM, Erik Skultety wrote:
> This series resolves https://bugzilla.redhat.com/show_bug.cgi?id=1463285
> 
> Erik Skultety (3):
>   util: Report an error when virFileResolveLinkHelper's lstat fails
>   util: Introduce virFileWaitForAccess
>   nodedev: Work around the uevent race by hooking up
>     virFileWaitForAccess
> 
>  src/libvirt_private.syms           |  1 +
>  src/node_device/node_device_udev.c | 48 +++++++++++++++++++++++++++++++++++++-
>  src/util/virfile.c                 | 40 ++++++++++++++++++++++++++++++-
>  src/util/virfile.h                 |  2 ++
>  4 files changed, 89 insertions(+), 2 deletions(-)
> 
> --
> 2.13.1
> 
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
> 

FWIW: This seemed a bit familiar to something for NPIV as well. Although
for NPIV the files exist, it's just that they have bogus data.  See:

https://www.redhat.com/archives/libvir-list/2016-June/msg02213.html

The referenced bz:

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

The settle code is used in a number of place in libvirt, search on
virWaitForDevices

John




More information about the libvir-list mailing list