[dpdk-dev] [PATCH] eal: Fixes VFIO/sysfs race condition
David Marchand
david.marchand at redhat.com
Tue Apr 21 18:19:08 CEST 2020
On Tue, Apr 7, 2020 at 12:23 AM Michael Haeuptle
<michael.haeuptle at hpe.com> wrote:
>
> 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).
>
> Fixes: 340b7bb8d583 ("vfio: extend data structure for multi container")
> Cc: stable at dpdk.org
>
> Signed-off-by: Michael Haeuptle <michael.haeuptle at hpe.com>
Please submit with a revision next time.
Added back acks from first revision of the patch.
Applied, thanks.
--
David Marchand
More information about the dev
mailing list