net/mlx5e: Replace async events spinlock with synchronize_irq()
authorTariq Toukan <tariqt@mellanox.com>
Tue, 1 Mar 2016 22:13:32 +0000 (00:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 22:27:58 +0000 (17:27 -0500)
commitdaa21560a29673f63263e907045f513a8d66dc33
tree3acd39347b1fbb8a4da26fd619c14d53ea26d19e
parent4f25a1110cd4f5746b750a9567303c7ef6826b7c
net/mlx5e: Replace async events spinlock with synchronize_irq()

We only need to flush the irq handler to make sure it does not
queue a work into the global work queue after we start to flush it.
So using synchronize_irq() is more appropriate than a spin lock.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h