Make sure callbacks being freed are not pending when the

"mlx4_en_deactivate_cq()" function returns.

MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2014-12-11 10:47:50 +00:00
parent a37271c3b8
commit a94c3b7d98

View File

@ -190,7 +190,7 @@ void mlx4_en_deactivate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq)
taskqueue_drain(cq->tq, &cq->cq_task);
if (cq->is_tx)
del_timer(&cq->timer);
del_timer_sync(&cq->timer);
mlx4_cq_free(mdev->dev, &cq->mcq);
}