net/mlx5_core/health: Remove deprecated create_singlethread_workqueue
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Tue, 26 Jul 2016 17:08:24 +0000 (22:38 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Jul 2016 22:18:56 +0000 (15:18 -0700)
commit0a91605cda883f7a25b1e7fa8cdc3f633ae8f8e0
tree636abbd76d500b8b9f861843b41547356a45cbb7
parent90b5ca1766ae7806a711d66df056af1290faa2c0
net/mlx5_core/health: Remove deprecated create_singlethread_workqueue

The workqueue health->wq was used as per device private health thread.
This was done to perform delayed work.

The workqueue has a single workitem(&health->work) and
hence doesn't require ordering. It is involved in handling the health of
the device and is not being used on a memory reclaim path.
Hence, the singlethreaded workqueue has been replaced with the use of
system_wq.

Work item has been flushed in mlx5_health_cleanup() to ensure that
there are no pending tasks while disconnecting the driver.

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/health.c