]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/efa: Improve admin completion context state machine
authorYonatan Nachum <ynachum@amazon.com>
Wed, 10 Dec 2025 13:06:14 +0000 (13:06 +0000)
committerLeon Romanovsky <leon@kernel.org>
Thu, 18 Dec 2025 15:12:38 +0000 (10:12 -0500)
commitdab5825491f7b0ea92a09390f39df0a51100f12f
tree0644e3d0b86023b173c7b0a2252e3778ac0cf3dc
parent4b01ec0f133b3fe1038dc538d6bfcbd72462d2f0
RDMA/efa: Improve admin completion context state machine

Add a new unused state to the admin completion contexts state machine
instead of the occupied field. This improves the completion validity
check because it now enforce the context to be in submitted state prior
to completing it. Also add allocated state as a intermediate state
between unused and submitted.

Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Link: https://patch.msgid.link/20251210130614.36460-3-ynachum@amazon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/efa/efa_com.c