[Bugfix] GDA/bnxt: release SQ lock before return (#372)

* bnxt_post_wqe_amo_single with fetching = true would return
  before releasing the send queue lock, resulting in a deadlock.
* Release the send queue lock before returning from the function.
Αυτή η υποβολή περιλαμβάνεται σε:
Omri Mor authored and GitHub committed 2025-12-22 12:05:00 -08:00
1 γονέας 80a710ac0a
υποβολή 016e08120a
1 file changed
+2 -2
@@ -434,13 +434,13 @@ __device__ uint64_t QueuePair::bnxt_post_wqe_amo_single(uintptr_t raddr, uint8_t
bnxt_ring_doorbell(sq.tail);
release_lock(&sq.lock);
if (fetching) {
quiet();
return fetching_atomic[atomic_idx];
}
release_lock(&sq.lock);
return 0;
}