Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdpa/mlx5: fix unregister kick handler order
The mlx5_vdpa_virtq_kick_handler function may still be running and waiting on virtq->virtq_lock while mlx5_vdpa_cqe_event_unset function is trying to re-initialize the virtq->virtq_lock. This causes mlx5_vdpa_virtq_kick_handler thread can't be wake up and can't be unregister. Following print may loop forever when calling rte_vhost_driver_unregister(socket_path): mlx5_vdpa: Try again to unregister fd 154 of virtq 11 interrupt mlx5_vdpa: Try again to unregister fd 154 of virtq 11 interrupt ... The fix is to move mlx5_vdpa_virtq_unregister_intr_handle before mlx5_vdpa_cqe_event_unset. Fixes: 057f7d2 ("vdpa/mlx5: optimize datapath-control synchronization") Cc: [email protected] Signed-off-by: Yajun Wu <[email protected]> Acked-by: Matan Azrad <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]>
- Loading branch information