[dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition

Stojaczyk, Dariusz dariusz.stojaczyk at intel.com
Wed Apr 1 10:50:38 CEST 2020


> From: dev <dev-bounces at dpdk.org> On Behalf Of Michael Haeuptle
> Sent: Tuesday, March 31, 2020 6:57 PM
> To: dev at dpdk.org
> Subject: [dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition
> 
> This fix treats a 0 return value from vfio_open_group_fd
> in vfio_get_group_fd as the intended error condition instead
> of putting an incorrect 0 file descriptor in the vfio_group table.
> 
> Sometimes, the creation of device files in sysfs is not
> instantaneously causing vfio_open_groupfd to return 0.
> This has been observed when hot removing/adding multiple
> NVMe devices (>=4).
> 
> Signed-off-by: Michael Haeuptle <michael.haeuptle at hpe.com>
> ---

Acked-by: Darek Stojaczyk <dariusz.stojaczyk at intel.com>


More information about the dev mailing list