netdev
[Top] [All Lists]

Re: [patch 05/18] net/s2io: replace schedule_timeout() with msleep()

To: Nishanth Aravamudan <nacc@xxxxxxxxxx>
Subject: Re: [patch 05/18] net/s2io: replace schedule_timeout() with msleep()
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Mon, 01 Nov 2004 13:03:10 -0500
Cc: janitor@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20041101183118.GA1730@xxxxxxxxxx>
References: <E1CO1vc-00022t-N2@sputnik> <4184C7EE.5070107@xxxxxxxxx> <20041101183118.GA1730@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Nishanth Aravamudan wrote:
On Sun, Oct 31, 2004 at 06:09:34AM -0500, Jeff Garzik wrote:

janitor@xxxxxxxxxxxxxx wrote:

@@ -2846,11 +2838,10 @@ static int s2io_ethtool_idnic(struct net
                sp->id_timer.data = (unsigned long) sp;
        }
        mod_timer(&sp->id_timer, jiffies);
-       set_current_state(TASK_INTERRUPTIBLE);
        if (data)
-               schedule_timeout(data * HZ);
+               msleep_interruptible(data * 1000);


clearly wants ssleep() here


Even though ssleep() is in TASK_UNINTERRUPTIBLE? In cases where the
existing code used TASK_INTERRUPTIBLE, but was sleeping in terms of
seconds, I left it as msleep_interruptible, since ssleep_interruptible()
doesn't exist.

Right:  create ssleep_interruptible()  :)

        Jeff




<Prev in Thread] Current Thread [Next in Thread>