1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel/e1000
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
..
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_ethtool.c e1000: fix memory leaks 2019-11-01 13:20:33 -07:00
e1000_hw.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_hw.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_main.c e1000: Do not perform reset in reset_task if we are already down 2020-10-01 13:18:03 +02:00
e1000_osdep.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000_param.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00