IB/rxe: Fix rxe dev insertion to rxe_dev_list
Subsystems (2)
PATCH 1/2 IB/rxe: Fix rxe dev insertion to rxe_dev_list
From: Maor Gottlieb <maorg-VPRAkNaXOzVWk0Htik3J/[email protected]>
The first argument of list_add_tail is the new item and the second is the head of the list. Fix the code to pass arguments in the right order, otherwise not all the rxe devices will be removed during teardown.
--- drivers/infiniband/sw/rxe/rxe_net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/sw/rxe/rxe_net.c +1 -1
@@ -555,7 +555,7 @@ struct rxe_dev *rxe_net_add(struct net_device *ndev) }spin_lock_bh (&dev_list_lock); -list_add_tail (&rxe_dev_list, &rxe->list); +list_add_tail (&rxe->list, &rxe_dev_list);spin_unlock_bh (&dev_list_lock);return rxe; }
Signature · 6 lines
2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170119132559.23999-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
PATCH 2/2 IB/rxe: Prevent from completer to operate on non valid QP
From: Yonatan Cohen <yonatanc-VPRAkNaXOzVWk0Htik3J/[email protected]>
On UD QP completer tasklet is scheduled for each packet sent.
If it is followed by a destroy_qp(), the kernel panic will happen as the completer tries to operate on a destroyed QP.
--- drivers/infiniband/sw/rxe/rxe_qp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/infiniband/sw/rxe/rxe_qp.c +1 -2
@@ -813,8 +813,7 @@ void rxe_qp_destroy(struct rxe_qp *qp)del_timer_sync (&qp->rnr_nak_timer);rxe_cleanup_task (&qp->req.task); -if (qp_type (qp) ==IB_QPT_RC ) -rxe_cleanup_task (&qp->comp.task); +rxe_cleanup_task (&qp->comp.task);/* flush out any receive wr's or pending requests */ __rxe_do_task (&qp->req.task);
Signature · 6 lines
2.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 20170119132559.23999-2-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Re: [PATCH rdma-next 2/2] IB/rxe: Prevent from completer to operate on non valid QP
Quoted 11 lines · Leon Romanovsky
From: Yonatan Cohen <yonatanc-VPRAkNaXOzVWk0Htik3J/[email protected]>
On UD QP completer tasklet is scheduled for each packet sent.
If it is followed by a
destroy_qp(), the kernel panic will happen as the completer tries to operate on a destroyed QP.Fixes 8700e3e7c485 ("Soft RoCE driver")Signed-off-by Leon Romanovsky <[email protected]>
Thanks, added to -rc.
Signature · 4 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD
Quoted 11 lines · Leon Romanovsky
From: Maor Gottlieb <maorg-VPRAkNaXOzVWk0Htik3J/[email protected]>
The first argument of
list_add_tailis the new item and the second is the head of the list. Fix the code to pass arguments in the right order, otherwise not all the rxe devices will be removed during teardown.Fixes 8700e3e7c4857 ('Soft RoCE driver')Signed-off-by Leon Romanovsky <[email protected]>
Thanks, added to -rc.
Signature · 4 lines
Doug Ledford <[email protected]> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD