linux/drivers/infiniband/sw
Ruoyu Wang bb27fcc67c RDMA/siw: publish QP after initialization
siw_create_qp() currently calls siw_qp_add() before the queues, CQ
pointers, state, completion, and device list entry are ready. A QPN
lookup can therefore reach a QP that is still being constructed.

Move siw_qp_add() to the end of siw_create_qp(), after QP
initialization and before adding the QP to the siw device list.

Fixes: f29dd55b02 ("rdma/siw: queue pair methods")
Link: https://patch.msgid.link/r/20260630060040.966461-1-ruoyuw560@gmail.com
Suggested-by: Bernard Metzler <bernard.metzler@linux.dev>
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Acked-by: Bernard Metzler <bernard.metzler@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2026-07-02 14:37:03 -03:00
..
rdmavt RDMA: Update the query_device() op 2026-06-03 15:12:43 -03:00
rxe RDMA v7.2 merge window 2026-06-18 08:16:21 -07:00
siw RDMA/siw: publish QP after initialization 2026-07-02 14:37:03 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00