i40evf: cancel workqueue sync for adminq when a VF is removed
authorLihong Yang <lihong.yang@intel.com>
Tue, 28 Aug 2018 17:16:08 +0000 (10:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:45:42 +0000 (18:45 +0100)
commit712d35e0d2c157eaa11b346a8905182e48ab0100
tree6d41bb5b802cd07973b742ea9be3f78a0bdbf1f5
parente5d3afbe3a5c1805ba190de5e2adcba417e3a782
i40evf: cancel workqueue sync for adminq when a VF is removed

[ Upstream commit babbcc60040abfb7a9e3caa1c58fe182ae73762a ]

If a VF is being removed, there is no need to continue with the
workqueue sync for the adminq task, thus cancel it. Without this call,
when VFs are created and removed right away, there might be a chance for
the driver to crash with events stuck in the adminq.

Signed-off-by: Lihong Yang <lihong.yang@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40evf/i40evf_main.c