Skip to content

Commit 2fe74a4

Browse files
committed
UCT/DEVICE: fix lock
1 parent 15db688 commit 2fe74a4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/uct/ib/mlx5/gdaki/gdaki.cuh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,12 @@ UCS_F_DEVICE void uct_rc_mlx5_gda_db(uct_rc_gdaki_dev_ep_t *ep,
199199
}
200200

201201
if (no_delay) {
202+
uct_rc_mlx5_gda_lock(&ep->sq_lock);
202203
const uint64_t ready_index = ep->sq_ready_index;
203204
uct_rc_mlx5_gda_ring_db(ep, ready_index);
204205
uct_rc_mlx5_gda_update_dbr(ep, ready_index);
205206
uct_rc_mlx5_gda_ring_db(ep, ready_index);
207+
uct_rc_mlx5_gda_unlock(&ep->sq_lock);
206208
return;
207209
}
208210

0 commit comments

Comments
 (0)