Commit 1223a1af authored by Andrew Boyer's avatar Andrew Boyer Committed by Doug Ledford

IB/rxe: Another fix for broken receive queue draining

This fixes another path in rxe_requester() that might overlook stale SKBs,
preventing cleanup.

Fixes: 12171971 ("rxe: fix broken receive queue draining")
Signed-off-by: default avatarAndrew Boyer <andrew.boyer@dell.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 2418adae
...@@ -594,8 +594,10 @@ int rxe_requester(void *arg) ...@@ -594,8 +594,10 @@ int rxe_requester(void *arg)
rxe_add_ref(qp); rxe_add_ref(qp);
next_wqe: next_wqe:
if (unlikely(!qp->valid)) if (unlikely(!qp->valid)) {
rxe_drain_req_pkts(qp, true);
goto exit; goto exit;
}
if (unlikely(qp->req.state == QP_STATE_ERROR)) { if (unlikely(qp->req.state == QP_STATE_ERROR)) {
rxe_drain_req_pkts(qp, true); rxe_drain_req_pkts(qp, true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment