]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd332559a5c06245a236a5b493f153a5f5dd9a29c
tree6845226145b3df4638f3e52834d1e57fc3d725d4
parent98fc1fe0bca1a17d238796ea24a7b59686b349ab
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