Files
twx-linux/include/linux
Edwin Peer c23a7acb08 net: watchdog: hold device global xmit lock during tx disable
commit 3aa6bce9af 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 13:59:16 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-10-08 10:26:06 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-28 10:18:33 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-10 09:09:25 +01:00
…
…
…
…
…
…
…
…
…
2017-05-14 14:00:22 +02:00
…
…
2019-11-25 09:53:14 +01:00
2017-07-12 15:01:02 +02:00
…
…
…
…
…
…
…
…
…
2020-09-03 11:21:21 +02:00
…
2017-08-06 18:59:43 -07:00
2021-02-03 23:19:50 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-10-10 08:53:18 +02:00
…
…
…
…
…
…
…
…
…
…
2020-04-02 17:20:40 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-08-24 17:12:19 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-11-18 18:26:29 +01:00
…
…
2020-03-20 09:07:43 +01:00
2017-08-24 17:12:21 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2021-02-03 23:19:50 +01:00
…
…
…
…
…
2020-04-02 17:20:39 +02:00
…
…
…
…
…
…
…
…
…
…
2017-08-30 10:21:40 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-11-13 11:17:02 -08:00
…
…
…
…
…
…
…
…
…
…
…
2020-12-11 13:38:00 +01:00
…
…
…
…
…
2017-04-21 09:31:21 +02:00
…
…
…
…
…
…
…
…
…
…
2017-12-25 14:23:37 +01:00
…
…
…
…
2020-04-02 17:20:39 +02:00
…
…
…
…
…
…
2018-12-05 19:42:42 +01:00
…
…
…
…
…
…
…
…