]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/siw: publish QP after initialization
authorRuoyu Wang <ruoyuw560@gmail.com>
Tue, 30 Jun 2026 06:00:40 +0000 (14:00 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 2 Jul 2026 17:37:03 +0000 (14:37 -0300)
commitbb27fcc67c429d97f785c92c35a6c5adebb05d7f
treed4d503a283c257d6ee11f64b009ac14594c69c22
parent9f0f2d2121f16d420199a82ac5bbc242269133b3
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: f29dd55b0236 ("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>
drivers/infiniband/sw/siw/siw_verbs.c