Commit b913de8c authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

[NET]: Invoke netdev_unregister_sysfs() outside of RTNL semaphore.

parent 59d0eec5
...@@ -2754,6 +2754,8 @@ void netdev_run_todo(void) ...@@ -2754,6 +2754,8 @@ void netdev_run_todo(void)
dev->next = NULL; dev->next = NULL;
netdev_unregister_sysfs(dev);
netdev_wait_allrefs(dev); netdev_wait_allrefs(dev);
BUG_ON(atomic_read(&dev->refcnt)); BUG_ON(atomic_read(&dev->refcnt));
...@@ -2842,8 +2844,6 @@ int unregister_netdevice(struct net_device *dev) ...@@ -2842,8 +2844,6 @@ int unregister_netdevice(struct net_device *dev)
free_divert_blk(dev); free_divert_blk(dev);
netdev_unregister_sysfs(dev);
spin_lock(&unregister_todo_lock); spin_lock(&unregister_todo_lock);
dev->next = unregister_todo; dev->next = unregister_todo;
unregister_todo = dev; unregister_todo = dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment