]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/rxe: Allow good work requests to be executed
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 29 Mar 2024 14:55:05 +0000 (09:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:44 +0000 (09:49 +0200)
commitba82921a886183d0a8085130dbf64ac1c51d363e
treeed4fb71f7dd2833c9505a4b39842799db5787750
parentbbad88f111a1829f366c189aa48e7e58e57553fc
RDMA/rxe: Allow good work requests to be executed

[ Upstream commit b703374837a8f8422fa3f1edcf65505421a65a6a ]

A previous commit incorrectly added an 'if(!err)' before scheduling the
requester task in rxe_post_send_kernel(). But if there were send wrs
successfully added to the send queue before a bad wr they might never get
executed.

This commit fixes this by scheduling the requester task if any wqes were
successfully posted in rxe_post_send_kernel() in rxe_verbs.c.

Link: https://lore.kernel.org/r/20240329145513.35381-5-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Fixes: 5bf944f24129 ("RDMA/rxe: Add error messages")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_verbs.c