Skip to content

Commit ebc701b

Browse files
nfontdavem330
authored andcommitted
ibmvnic: Do not notify peers on parameter change resets
When attempting to change the driver parameters, such as the MTU value or number of queues, do not call netdev_notify_peers(). Doing so will deadlock on the rtnl_lock. Signed-off-by: Nathan Fontenot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 64d92aa commit ebc701b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,8 @@ static int do_reset(struct ibmvnic_adapter *adapter,
18431843
for (i = 0; i < adapter->req_rx_queues; i++)
18441844
napi_schedule(&adapter->napi[i]);
18451845

1846-
if (adapter->reset_reason != VNIC_RESET_FAILOVER)
1846+
if (adapter->reset_reason != VNIC_RESET_FAILOVER &&
1847+
adapter->reset_reason != VNIC_RESET_CHANGE_PARAM)
18471848
netdev_notify_peers(netdev);
18481849

18491850
netif_carrier_on(netdev);

0 commit comments

Comments
 (0)