Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix potential CQ deadlock in mlx5 provider
[ Upstream commit e677dc6 ] We saw deadlock in mlx5_destroy_qp() if ibv_start_poll() returns EBUSY failure. According to reference (https://man7.org/linux/man-pages/man3/ibv_create_cq_ex.3.html), if ibv_start_poll() returns error, ibv_end_poll() shouldn't be called. Therefore, we must release the CQ lock in mlx5_start_poll() if mlx5dv_get_clock_info() returns error e.g. EBUSY. Fixes: 4745c80 ("mlx5: Implement read_completion_wallclock_ns") Signed-off-by: Yijing Zeng <zengyijing19900106@gmail.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
- Loading branch information