netdev
[Top] [All Lists]

[PATCH 2.6.9-rc3] dev_close: use of netif_poll_disable

To: davem@xxxxxxxxxx
Subject: [PATCH 2.6.9-rc3] dev_close: use of netif_poll_disable
From: Francois Romieu <romieu@xxxxxxxxxxxxx>
Date: Sat, 2 Oct 2004 22:28:05 +0200
Cc: netdev@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
Use of identical (comment included) netif_poll_disable().

Signed-off-by: Francois Romieu <romieu@xxxxxxxxxxxxx>

diff -puN net/core/dev.c~dev_close-cleanup net/core/dev.c
--- linux-2.6.9-rc3/net/core/dev.c~dev_close-cleanup    2004-10-02 
22:14:29.000000000 +0200
+++ linux-2.6.9-rc3-fr/net/core/dev.c   2004-10-02 22:16:02.000000000 +0200
@@ -959,11 +959,8 @@ int dev_close(struct net_device *dev)
         * engine, but this requires more changes in devices. */
 
        smp_mb__after_clear_bit(); /* Commit netif_running(). */
-       while (test_bit(__LINK_STATE_RX_SCHED, &dev->state)) {
-               /* No hurry. */
-               current->state = TASK_INTERRUPTIBLE;
-               schedule_timeout(1);
-       }
+
+       netif_poll_disable(dev);
 
        /*
         *      Call the device specific close. This cannot fail.

_

<Prev in Thread] Current Thread [Next in Thread>