]> Gentwo Git Trees - linux/.git/commit
RDMA/siw: Always report immediate post SQ errors
authorBernard Metzler <bernard.metzler@linux.dev>
Tue, 23 Sep 2025 14:45:36 +0000 (16:45 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 26 Sep 2025 16:12:19 +0000 (13:12 -0300)
commitfdd0fe94d68649322e391c5c27dd9f436b4e955e
tree3bd1278053a76c2d7a15c903862b160b4cde405b
parentfb0b08297ecb429b60cb2b6ed40632ce5294220c
RDMA/siw: Always report immediate post SQ errors

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: 303ae1cdfdf7 ("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>
drivers/infiniband/sw/siw/siw_verbs.c