]> git.karo-electronics.de Git - linux-beck.git/commit
net/mlx5: Cancel recovery work in remove flow
authorDaniel Jurgens <danielj@mellanox.com>
Wed, 28 Dec 2016 12:58:33 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jan 2017 12:42:53 +0000 (13:42 +0100)
commitca8a64467f2a20f86218c483c03fb7fc8c33c156
treec6b6a71c17295fff645a8b4dc543432d2690a4df
parent7bf1de7f2749ad858c33d3133240d5c3df046658
net/mlx5: Cancel recovery work in remove flow

[ Upstream commit 689a248df83b6032edc57e86267b4e5cc8d7174e ]

If there is pending delayed work for health recovery it must be canceled
if the device is being unloaded.

Fixes: 05ac2c0b7438 ("net/mlx5: Fix race between PCI error handlers and health work")
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c