Skip to content

Commit 01a58e0

Browse files
committed
UCT/DEVICE: fix lock
1 parent 4680a6b commit 01a58e0

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
@@ -274,10 +274,12 @@ UCS_F_DEVICE void uct_rc_mlx5_gda_db(uct_rc_gdaki_dev_ep_t *ep,
274274
}
275275

276276
if (no_delay) {
277+
uct_rc_mlx5_gda_lock(&ep->sq_lock);
277278
const uint64_t ready_index = ep->sq_ready_index;
278279
uct_rc_mlx5_gda_ring_db(ep, ready_index);
279280
uct_rc_mlx5_gda_update_dbr(ep, ready_index);
280281
uct_rc_mlx5_gda_ring_db(ep, ready_index);
282+
uct_rc_mlx5_gda_unlock(&ep->sq_lock);
281283
return;
282284
}
283285

0 commit comments

Comments
 (0)