[PATCH] Re: Linux 2.6.0-test5

Jeff Garzik
2003-09-08T23:04:54Z

[-- Attachment #1: Type: text/plain, Size: 123 bytes --]

Note that people seeing "ifconfig down ... ifconfig up" problems need to
apply this patch. (to 2.4.23-pre, too)

Jeff

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 510 bytes --]

diff -Nru a/net/core/dev.c b/net/core/dev.c
--- a/net/core/dev.c Mon Sep 8 18:14:36 2003
+++ b/net/core/dev.c Mon Sep 8 18:14:36 2003
@@ -851,7 +851,11 @@
* engine, but this requires more changes in devices. */

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.