diff options
author | Edwin Peer <edwin.peer@broadcom.com> | 2021-02-06 04:37:32 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-09 03:18:58 +0300 |
commit | 3aa6bce9af0e25b735c9c1263739a5639a336ae8 (patch) | |
tree | 044f908132ba3671debf843068c8f9c23728d464 /net/bridge/br_private_mrp.h | |
parent | ce7536bc7398e2ae552d2fabb7e0e371a9f1fe46 (diff) | |
download | linux-3aa6bce9af0e25b735c9c1263739a5639a336ae8.tar.xz |
net: watchdog: hold device global xmit lock during tx disable
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: c3f26a269c24 ("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>
Diffstat (limited to 'net/bridge/br_private_mrp.h')
0 files changed, 0 insertions, 0 deletions