]> git.baikalelectronics.ru Git - kernel.git/commit
[NET]: Fix busy waiting in dev_close().
authorDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2005 19:12:58 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jul 2005 19:12:58 +0000 (12:12 -0700)
commitd2f7be806da8c6d54096f113ae75bff365fc3f1b
treeb78a56cb70fe36f145821ac3c699abf3dc627256
parent467d0d40b3cee6bf152d72065e67a112273dd000
[NET]: Fix busy waiting in dev_close().

If the current task has signal_pending(), the loop we have
to wait for the __LINK_STATE_RX_SCHED bit to clear becomes
a pure busy-loop.

Fixed by using msleep() instead of the hand-crafted version.

Noticed by Andrew Morton.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c