Files
kernel/include/linux
Edwin Peer bb7addea77 net: watchdog: hold device global xmit lock during tx disable
commit 3aa6bce9af0e25b735c9c1263739a5639a336ae8 upstream.

Prevent netif_tx_disable() running concurrently with dev_watchdog() by
taking the device global xmit lock. Otherwise, the recommended:

	netif_carrier_off(dev);
	netif_tx_disable(dev);

driver shutdown sequence can happen after the watchdog has already
checked carrier, resulting in possible false alarms. This is because
netif_tx_lock() only sets the frozen bit without maintaining the locks
on the individual queues.

Fixes: c3f26a269c ("netdev: Fix lockdep warnings in multiqueue configurations.")
Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-23 15:00:58 +01:00
..
2019-12-17 20:35:45 +01:00
2021-01-30 13:32:11 +01:00
2021-02-10 09:21:06 +01:00
2021-01-30 13:32:13 +01:00
2021-01-30 13:32:12 +01:00
2019-12-13 08:52:43 +01:00
2021-02-07 14:48:38 +01:00
2019-12-31 16:35:38 +01:00
2020-07-29 10:16:52 +02:00
2020-03-18 07:14:17 +01:00
2021-01-30 13:32:12 +01:00
2020-04-02 15:28:22 +02:00
2020-12-11 13:25:01 +01:00
2020-04-02 15:28:23 +02:00