IB/mlx4: Avoid executing gid task when device is being removed
authorMoni Shoua <monis@mellanox.com>
Thu, 21 Aug 2014 11:28:42 +0000 (14:28 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Sep 2014 16:46:52 +0000 (09:46 -0700)
commit4bf9715f184969dc703bde7be94919995024a6a9
tree6845226145b3df4638f3e52834d1e57fc3d725d4
parentdba3ad2addcd74ec850e510f3b8a9d046cc24ef3
IB/mlx4: Avoid executing gid task when device is being removed

When device is being removed (e.g during VPI port link type change
from ETH to IB), tasks for gid table changes should not be executed.

Flush the current queue of tasks and block further tasks from entering the queue.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c