Skip to content

Commit

Permalink
Merge pull request #1470 from zengyijing/fix_mlx5_cq_deadlock
Browse files Browse the repository at this point in the history
fix potential CQ deadlock in mlx5 provider
  • Loading branch information
yishaih committed Jun 10, 2024
2 parents 1840c1b + e677dc6 commit ed63376
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion providers/mlx5/cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,8 +1163,11 @@ static inline int mlx5_start_poll(struct ibv_cq_ex *ibcq, struct ibv_poll_cq_att
goto out;
}

if (clock_update && !err)
if (clock_update && !err) {
err = mlx5dv_get_clock_info(ibcq->context, &cq->last_clock_info);
if (lock && err)
mlx5_spin_unlock(&cq->lock);
}

out:
return err;
Expand Down

0 comments on commit ed63376

Please sign in to comment.