Re: msleep_interruptible() in ethtool ioctl and keyboard input

From: Ganesh Venkatesan
Date: Fri Apr 29 2005 - 14:14:10 EST


>
> You really want this timer to go off immediately?
>
Yes.

> Regardless....
>
> > msleep_interruptible(data * 1000);
>
> Does the same issue occur if you revert this change and make it
>
> set_current_state(TASK_INTERRUPTIBLE);
> schedule_timeout(data * HZ);
>
> ?
No. The issue happens irrespective of whether it is
msleep_interruptible or the set_current_state/schedule_timeout combo.

ganesh.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/