Commit ffd342e0 authored by Benjamin Poirier's avatar Benjamin Poirier Committed by David S. Miller

be2net: Synchronize be_update_queues with dev_watchdog

As pointed out by Firo Yang, a netdev tx timeout may trigger just before an
ethtool set_channels operation is started. be_tx_timeout(), which dumps
some queue structures, is not written to run concurrently with
be_update_queues(), which frees/allocates those queues structures. Add some
synchronization between the two.

Message-id: <>
Signed-off-by: default avatarBenjamin Poirier <>
Signed-off-by: default avatarDavid S. Miller <>
parent ea811b79
......@@ -4698,8 +4698,13 @@ int be_update_queues(struct be_adapter *adapter)
int status;
if (netif_running(netdev)) {
/* be_tx_timeout() must not run concurrently with this
* function, synchronize with an already-running dev_watchdog
/* device cannot transmit now, avoid dev_watchdog timeouts */
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment