usb/usbnet: replace schedule_timeout()
Subsystems (2)
PATCH 1/1 usb/usbnet: replace schedule_timeout()
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/usb/net/usbnet.c +1 -2
@@ -2550,8 +2550,7 @@ static int usbnet_stop (struct net_devicwhile (skb_queue_len (&dev->rxq) &&skb_queue_len (&dev->txq) &&skb_queue_len (&dev->done)) { -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout (UNLINK_TIMEOUT_JIFFIES ); + msleep(jiffies_to_msecs(UNLINK_TIMEOUT_JIFFIES);devdbg (dev,"waited for %d urb completions" , temp); } dev->wait =0 ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors