svn commit: r275701 - head/sys/ofed/drivers/net/mlx4

Hans Petter Selasky hselasky at FreeBSD.org
Thu Dec 11 10:47:51 UTC 2014


Author: hselasky
Date: Thu Dec 11 10:47:50 2014
New Revision: 275701
URL: https://svnweb.freebsd.org/changeset/base/275701

Log:
  Make sure callbacks being freed are not pending when the
  "mlx4_en_deactivate_cq()" function returns.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/ofed/drivers/net/mlx4/en_cq.c

Modified: head/sys/ofed/drivers/net/mlx4/en_cq.c
==============================================================================
--- head/sys/ofed/drivers/net/mlx4/en_cq.c	Thu Dec 11 09:16:45 2014	(r275700)
+++ head/sys/ofed/drivers/net/mlx4/en_cq.c	Thu Dec 11 10:47:50 2014	(r275701)
@@ -190,7 +190,7 @@ void mlx4_en_deactivate_cq(struct mlx4_e
 
         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);
 }


More information about the svn-src-all mailing list