forked from Minki/linux
IB/rxe: Another fix for broken receive queue draining
This fixes another path in rxe_requester() that might overlook stale SKBs,
preventing cleanup.
Fixes: 1217197142
("rxe: fix broken receive queue draining")
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
2418adaed1
commit
1223a1af75
@ -594,8 +594,10 @@ int rxe_requester(void *arg)
|
||||
rxe_add_ref(qp);
|
||||
|
||||
next_wqe:
|
||||
if (unlikely(!qp->valid))
|
||||
if (unlikely(!qp->valid)) {
|
||||
rxe_drain_req_pkts(qp, true);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (unlikely(qp->req.state == QP_STATE_ERROR)) {
|
||||
rxe_drain_req_pkts(qp, true);
|
||||
|
Loading…
Reference in New Issue
Block a user