net/mlx4_core: Make sure there are no pending async events when freeing CQ
authorMatan Barak <matanb@mellanox.com>
Sun, 31 May 2015 06:30:18 +0000 (09:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2015 06:35:34 +0000 (23:35 -0700)
commit6d90aa5cf17b1149115a002d7582b5d28ee43359
tree8da9b2d17d21f22a089d0ebf1a714b8faacce0d1
parentde1618034ae5704f9e503a20a1c328a0e60f6b5f
net/mlx4_core: Make sure there are no pending async events when freeing CQ

When freeing a CQ, we need to make sure there are no
asynchronous events (on the ASYNC EQ) that could
relate to this CQ before freeing it.

This is done by introducing synchronize_irq.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Ido Shamay <idos@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cq.c