]> git.ipfire.org Git - thirdparty/linux.git/commit
RDMA/irdma: Replace waitqueue and flag with completion
authorJacob Moroni <jmoroni@google.com>
Tue, 16 Jun 2026 15:56:01 +0000 (15:56 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 16 Jun 2026 18:29:33 +0000 (15:29 -0300)
commitd9c8c45e6d2f438a3c8e643ae78b59454fa0fadd
tree7cec8846deb0378a5a87bf07590deacb2fef8b83
parentc0bd03b850d81a8914168d87ddf7f6ffa58875ef
RDMA/irdma: Replace waitqueue and flag with completion

The driver previously used a waitqueue along with an explicit
request_done flag, but without proper barriers around request_done.

An earlier patch by Gui-Dong Han <hanguidong02@gmail.com> attempted
to fix this by adding the missing memory barriers. Rather than
adding the barriers, this patch replaces the waitqueue+flag with
a completion, which is designed for this exact purpose.

Fixes: 44d9e52977a1 ("RDMA/irdma: Implement device initialization definitions")
Fixes: 915cc7ac0f8e ("RDMA/irdma: Add miscellaneous utility definitions")
Link: https://patch.msgid.link/r/20260616155601.1081448-1-jmoroni@google.com
Signed-off-by: Jacob Moroni <jmoroni@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/hw.c
drivers/infiniband/hw/irdma/main.h
drivers/infiniband/hw/irdma/utils.c