1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel
Alexander Duyck 2477158bfd e1000: Do not perform reset in reset_task if we are already down
[ Upstream commit 49ee3c2ab5 ]

We are seeing a deadlock in e1000 down when NAPI is being disabled. Looking
over the kernel function trace of the system it appears that the interface
is being closed and then a reset is hitting which deadlocks the interface
as the NAPI interface is already disabled.

To prevent this from happening I am disabling the reset task when
__E1000_DOWN is already set. In addition code has been added so that we set
the __E1000_DOWN while holding the __E1000_RESET flag in e1000_close in
order to guarantee that the reset task will not run after we have started
the close call.

Signed-off-by: Alexander Duyck <alexander.h.duyck@linux.intel.com>
Tested-by: Maxim Zhukov <mussitantesmortem@gmail.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:18:03 +02:00
..
e1000 e1000: Do not perform reset in reset_task if we are already down 2020-10-01 13:18:03 +02:00
e1000e e1000e: Add support for Comet Lake 2020-09-23 12:40:33 +02:00
fm10k fm10k: use a local variable for the frag pointer 2019-09-09 10:08:38 -07:00
i40e i40e: Fix crash during removing i40e driver 2020-08-26 10:41:01 +02:00
iavf iavf: use tc_cls_can_offload_and_chain0() instead of chain check 2020-10-01 13:17:37 +02:00
ice ice: Fix to change Rx/Tx ring descriptor size via ethtool with DCBx 2020-10-01 13:17:16 +02:00
igb igb: reinit_locked() should be called with rtnl_lock 2020-08-11 15:33:38 +02:00
igbvf net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
igc igb/igc: use ktime accessors for skb->tstamp 2019-11-08 16:10:51 -08:00
ixgb net: Use skb accessors in network drivers 2019-07-22 20:47:56 -07:00
ixgbe scsi: fcoe: Fix I/O path allocation 2020-09-03 11:26:59 +02:00
ixgbevf ixgbevf: Remove limit of 10 entries for unicast filter list 2020-02-05 21:22:44 +00:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00