Subject: Re: msleep_interruptible() in ethtool ioctl and keyboard input

From: Ganesh Venkatesan <[email-masked]>
Date: Fri, 29 Apr 2005 12:07:12 -0700

> 
> 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.