]> www.infradead.org Git - linux.git/commit
RDMA/rxe: Remove redundant scheduling of rxe_completer
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 29 Mar 2024 14:55:06 +0000 (09:55 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 22 Apr 2024 19:54:33 +0000 (16:54 -0300)
commitff30e45376d2ea68e032e6430babc0df15c4fc39
treed511963b8e56ba61ce19ef993783bb74b87d668e
parentb703374837a8f8422fa3f1edcf65505421a65a6a
RDMA/rxe: Remove redundant scheduling of rxe_completer

In rxe_post_send_kernel() if the qp is in the error state after posting
the work requests the rxe_completer() task is scheduled.

But, the only way to move the qp into the error state is to call
rxe_qp_error() which also schedules the rxe_completer() task to drain the
queues. Calling it a second time has no effect. This commit removes the
redundant call.

Link: https://lore.kernel.org/r/20240329145513.35381-6-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_verbs.c