diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-12-11 10:47:50 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-12-11 10:47:50 +0000 |
commit | 13d48a81ec2cda62154a8967078e87a03b155389 (patch) | |
tree | 8bf0aa5dc38519357fa4d95f8757eeea552501fe /sys/ofed | |
parent | b1aa3197782d207ddc69453caea131185174fcdc (diff) | |
download | FreeBSD-src-13d48a81ec2cda62154a8967078e87a03b155389.zip FreeBSD-src-13d48a81ec2cda62154a8967078e87a03b155389.tar.gz |
Make sure callbacks being freed are not pending when the
"mlx4_en_deactivate_cq()" function returns.
MFC after: 1 week
Sponsored by: Mellanox Technologies
Diffstat (limited to 'sys/ofed')
-rw-r--r-- | sys/ofed/drivers/net/mlx4/en_cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ofed/drivers/net/mlx4/en_cq.c b/sys/ofed/drivers/net/mlx4/en_cq.c index be043ce..591404d 100644 --- a/sys/ofed/drivers/net/mlx4/en_cq.c +++ b/sys/ofed/drivers/net/mlx4/en_cq.c @@ -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); } |