Skip to content

Commit

Permalink
net:cxgb3: fix incorrect work cancellation
Browse files Browse the repository at this point in the history
In my last changes in commit 5e0b892 I introduced a copy-paste bug,
leading to cancel twice qresume_task work for OFLD queue, and never the
one for CTRL queue. This patch cancels correctly both works.

Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Íñigo Huguet authored and David S. Miller committed Jun 4, 2021
1 parent fcb3463 commit d5a73dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/chelsio/cxgb3/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -3310,7 +3310,7 @@ void t3_sge_stop(struct adapter *adap)
struct sge_qset *qs = &adap->sge.qs[i];

cancel_work_sync(&qs->txq[TXQ_OFLD].qresume_task);
cancel_work_sync(&qs->txq[TXQ_OFLD].qresume_task);
cancel_work_sync(&qs->txq[TXQ_CTRL].qresume_task);
}
}

Expand Down

0 comments on commit d5a73dc

Please sign in to comment.