linux/drivers/infiniband
Bernard Metzler c52acc04c8 RDMA/siw: Always report immediate post SQ errors
[ Upstream commit fdd0fe94d6 ]

In siw_post_send(), any immediate error encountered during processing of
the work request list must be reported to the caller, even if previous
work requests in that list were just accepted and added to the send queue.

Not reporting those errors confuses the caller, which would wait
indefinitely for the failing and potentially subsequently aborted work
requests completion.

This fixes a case where immediate errors were overwritten by subsequent
code in siw_post_send().

Fixes: 303ae1cdfd ("rdma/siw: application interface")
Link: https://patch.msgid.link/r/20250923144536.103825-1-bernard.metzler@linux.dev
Suggested-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Bernard Metzler <bernard.metzler@linux.dev>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-10-15 11:56:37 +02:00
..
core IB/sa: Fix sa_local_svc_timeout_ms read race 2025-10-15 11:56:35 +02:00
hw IB/mlx5: Fix obj_type mismatch for SRQ event subscriptions 2025-10-02 13:40:37 +02:00
sw RDMA/siw: Always report immediate post SQ errors 2025-10-15 11:56:37 +02:00
ulp RDMA/srp: Fix error handling in srp_add_port 2025-02-21 13:49:12 +01:00
Kconfig RDMA: Disable IB HW for UML 2022-12-31 13:32:36 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00