]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 28 Apr 2020 18:02:57 +0000 (19:02 +0100)
commitc02dd068bd79e105230ff290b53bbea2a7ab7d59
tree2e6e6f11b716ac357c5efca947418493d79c76cd
parent9503886f774cf4e0b62ec68ec270bf4a67140975
IB/mlx4: Avoid executing gid task when device is being removed

commit 4bf9715f184969dc703bde7be94919995024a6a9 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/hw/mlx4/main.c