]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/irdma: Remove fixed 1 ms delay during AH wait loop
authorJacob Moroni <jmoroni@google.com>
Mon, 5 Jan 2026 18:05:50 +0000 (18:05 +0000)
committerLeon Romanovsky <leon@kernel.org>
Tue, 13 Jan 2026 13:19:11 +0000 (08:19 -0500)
commit5c3f795d17dc57a58a1fc1c1b449812e26ad85a3
tree1b4bdd9c2ed2a9541df7f3fd071f9a89220536f3
parent52f3d34c292b62ec151c6a487d267341d47eefa4
RDMA/irdma: Remove fixed 1 ms delay during AH wait loop

The AH CQP command wait loop executes in an atomic context and was
using a fixed 1 ms delay. Since many AH create commands can complete
much faster than 1 ms, use poll_timeout_us_atomic with a 1 us delay.

Also, use the timeout value indicated during the capability exchange
rather than a hard-coded value.

Signed-off-by: Jacob Moroni <jmoroni@google.com>
Link: https://patch.msgid.link/20260105180550.2907858-1-jmoroni@google.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/main.h
drivers/infiniband/hw/irdma/utils.c
drivers/infiniband/hw/irdma/verbs.c