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)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 22 Apr 2024 19:54:32 +0000 (16:54 -0300)
commitb703374837a8f8422fa3f1edcf65505421a65a6a
treed910409af89dfc2803d797087b78173948fea367
parent2b23b6097303ed0ba5f4bc036a1c07b6027af5c6
RDMA/rxe: Allow good work requests to be executed

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>
drivers/infiniband/sw/rxe/rxe_verbs.c