Skip to content

RDMA/rxe: correct cleanup-task backport and timer cleanup

Vladislav Nikolaev linux-rdma lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Revert "RDMA/rxe: Fix the error "trying to register non-static key in rxe_cleanup_task""drivers/infiniband/sw/rxe/rxe_qp.c+2 -51 reply
2/3RDMA/rxe: Fix the error "trying to register non-static key in rxe_cleanup_task"drivers/infiniband/sw/rxe/rxe_qp.c+8 -30 replies
3/3RDMA/rxe: Fix "trying to register non-static key in rxe_qp_do_cleanup" bugdrivers/infiniband/sw/rxe/rxe_qp.c+6 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 6.1 0/3] RDMA/rxe: correct cleanup-task backport and timer cleanup

The linux-6.1.y tree contains commit 3236221bb8e4 ("RDMA/rxe: Fix the error "trying to register non-static key in rxe_cleanup_task""), which is an incomplete backport of upstream commit b2b1ddc45745 ("RDMA/rxe: Fix the error "trying to register non-static key in rxe_cleanup_task"").

The stable backport added guards for req.task and comp.task, but missed the resp.task guard and also left rxe_cleanup_task(&qp->resp.task) above the RC timer cleanup. The upstream fix checks all three tasks and keeps resp.task cleanup after the timer cleanup.

This series first reverts the incomplete stable backport, then applies the correct backport, and finally backports commit 1c7eec4d5f3b ("RDMA/rxe:
Fix "trying to register non-static key in rxe_qp_do_cleanup" bug") to avoid deleting uninitialized RC timers during QP cleanup. The last patch keeps del_timer_sync(), because linux-6.1.y has not renamed it to timer_delete_sync() yet.

Vladislav Nikolaev (1):
Revert "RDMA/rxe: Fix the error "trying to register non-static key in
rxe_cleanup_task""

Zhu Yanjun (2):
RDMA/rxe: Fix the error "trying to register non-static key in
rxe_cleanup_task"
RDMA/rxe: Fix "trying to register non-static key in rxe_qp_do_cleanup"
bug

 drivers/infiniband/sw/rxe/rxe_qp.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0