RE: [PATCH v2] vfio/xe: avoid duplicate reset in xe_vfio_pci_reset_done
From: Tian, Kevin
Date: Thu May 07 2026 - 04:08:55 EST
> From: zhaoguohan@xxxxxxxxxx <zhaoguohan@xxxxxxxxxx>
> Sent: Monday, April 27, 2026 9:21 AM
>
> From: GuoHan Zhao <zhaoguohan@xxxxxxxxxx>
>
> xe_vfio_pci_reset_done() sets deferred_reset and, when it manages to
> acquire state_mutex itself, hands the cleanup off to
> xe_vfio_pci_state_mutex_unlock().
>
> That helper already clears deferred_reset and runs xe_vfio_pci_reset()
> before dropping the mutex. Calling xe_vfio_pci_reset() again right
> afterwards repeats the reset handling unnecessarily.
>
> Fixes: 1f5556ec8b9e ("vfio/xe: Add device specific vfio_pci driver variant for
> Intel graphics")
> Signed-off-by: GuoHan Zhao <zhaoguohan@xxxxxxxxxx>
Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>