All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ravinandan Arakali" <ravinandan.arakali@neterion.com>
To: kernel-janitors@vger.kernel.org
Subject: RE: [KJ] RE: [PATCH 14/21] net/s2io: replace schedule_timeout() with
Date: Wed, 16 Feb 2005 23:54:06 +0000	[thread overview]
Message-ID: <000b01c51482$cd177de0$4510100a@pc.s2io.com> (raw)
In-Reply-To: <200501172315.j0HNFAaH027053@guinness.s2io.com>

[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]

Domen,
Thanks for pointing that out. As you mention, the intention is
indeed to wait for Ctrl+C.
Nishanth, are you planning to modify it to msleep_interruptible().
If so, pls note that I submitted a Multicast fix after your below
patch. Pls apply multicast patch before changing to msleep_interruptible().

Ravi

-----Original Message-----
From: Domen Puncer [mailto:domen@coderock.org]
Sent: Wednesday, February 16, 2005 5:26 AM
To: Ravinandan Arakali
Cc: 'Raghavendra Koushik'; 'Nishanth Aravamudan';
kernel-janitors@lists.osdl.org; leonid.grossman@neterion.com
Subject: Re: [KJ] RE: [PATCH 14/21] net/s2io: replace schedule_timeout()
with msleep()


On 09/02/05 10:37 -0800, Ravinandan Arakali wrote:
> Nishanth,
> We did some basic testing after applying your patch and it seems okay.
...
>
> In the function s2io_ethtool_idnic(), call to schedule_timeout() has not
> been replaced with msleep(). I've given below the code change I did before
> testing.
>
> @@ -3284,11 +3277,10 @@
>                 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(data*1000);
>         else
> -               schedule_timeout(MAX_SCHEDULE_TIMEOUT);
> +               msleep(0xFFFFFFFF);

Was this code path tested too? It looks weird, as msleep _will_ sleep
for almost a day.
I don't know ethtool, but might this 'idnic' with undefined sleep time
just wait for ctrl+c for example? If that is so, msleep_interruptible
is what you want.

>         del_timer_sync(&sp->id_timer);
>
>         if (CARDS_WITH_FAULTY_LINK_INDICATORS(subid)) {
>


[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2005-02-16 23:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-17 23:15 [KJ] RE: [PATCH 14/21] net/s2io: replace schedule_timeout() with Raghavendra Koushik
2005-01-17 23:29 ` [KJ] " Nishanth Aravamudan
2005-02-09 18:37 ` [KJ] " Ravinandan Arakali
2005-02-16 13:25 ` Domen Puncer
2005-02-16 14:31 ` Domen Puncer
2005-02-16 23:54 ` Ravinandan Arakali [this message]
2005-02-17  0:13 ` Nishanth Aravamudan
2005-02-17  0:24 ` Ravinandan Arakali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000b01c51482$cd177de0$4510100a@pc.s2io.com' \
    --to=ravinandan.arakali@neterion.com \
    --cc=kernel-janitors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.