Revert "RDMA/rxe: Fix seg fault in rxe_comp_queue_pkt"

This reverts commit df727900ad.
This commit is contained in:
Ksawlii 2024-11-24 00:22:57 +01:00
parent 6407d85670
commit 5c808ce6b2

View file

@ -123,12 +123,12 @@ void rxe_comp_queue_pkt(struct rxe_qp *qp, struct sk_buff *skb)
{
int must_sched;
must_sched = skb_queue_len(&qp->resp_pkts) > 0;
skb_queue_tail(&qp->resp_pkts, skb);
must_sched = skb_queue_len(&qp->resp_pkts) > 1;
if (must_sched != 0)
rxe_counter_inc(SKB_TO_PKT(skb)->rxe, RXE_CNT_COMPLETER_SCHED);
skb_queue_tail(&qp->resp_pkts, skb);
rxe_run_task(&qp->comp.task, must_sched);
}