Commit 84972baf authored by Jeff Garzik's avatar Jeff Garzik Committed by Linus Torvalds

[PATCH] Fix netdev close

This should fix the "ifconfig down ...  ifconfig up" problems some
people have seen.
parent cdce088e
...@@ -841,7 +841,11 @@ int dev_close(struct net_device *dev) ...@@ -841,7 +841,11 @@ int dev_close(struct net_device *dev)
* engine, but this requires more changes in devices. */ * engine, but this requires more changes in devices. */
smp_mb__after_clear_bit(); /* Commit netif_running(). */ smp_mb__after_clear_bit(); /* Commit netif_running(). */
netif_poll_disable(dev); while (test_bit(__LINK_STATE_RX_SCHED, &dev->state)) {
/* No hurry. */
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(1);
}
/* /*
* Call the device specific close. This cannot fail. * Call the device specific close. This cannot fail.
......
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