]> git.baikalelectronics.ru Git - kernel.git/commit
net/ibmvnic: Fix RTNL deadlock during device reset
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 30 Nov 2018 16:59:08 +0000 (10:59 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 23:53:55 +0000 (15:53 -0800)
commit7f0fbd97a9886eb44ed638180c3f3f0172d57c2e
tree67428949a0637abece04902c4c8583ff63601c9b
parentb054100bad6aea265270f3cc368bfb0e0f391ce6
net/ibmvnic: Fix RTNL deadlock during device reset

Commit d1e045b34a29 ("net/ibmnvic: Fix deadlock problem
in reset") made the change to hold the RTNL lock during
driver reset but still calls netdev_notify_peers, which
results in a deadlock. Instead, use call_netdevice_notifiers,
which is functionally the same except that it does not
take the RTNL lock again.

Fixes: d1e045b34a29 ("net/ibmnvic: Fix deadlock problem in reset")
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c