X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fcore%2Fdev.c;h=52a3bf7ae177a803b5b77190ec1f34e8070175e5;hb=5a90fa71f6d45054c78b2bd6dbc4feba1638e1d2;hp=ff9dc029233a850cfa3985525c89d1da761601f8;hpb=8ed693d29b25bbd88471ec043cc01581419d0481;p=linux-2.6 diff --git a/net/core/dev.c b/net/core/dev.c index ff9dc02923..52a3bf7ae1 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -901,8 +901,7 @@ int dev_close(struct net_device *dev) 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); + msleep(1); } /*