From: Jon Masters <jonmasters@gmail.com>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] [PATCH] input/iforce-packets: insert set_current_state()
Date: Fri, 22 Oct 2004 23:33:14 +0000 [thread overview]
Message-ID: <35fb2e59041022163321ab05bc@mail.gmail.com> (raw)
In-Reply-To: <20041022232838.GD18906@us.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 846 bytes --]
On Fri, 22 Oct 2004 16:28:38 -0700, Nishanth Aravamudan <nacc@us.ibm.com> wrote:
> Description: Inserts set_current_state() before schedule_timeout().
> Without the insertion, schedule_timeout() will return immediately.
> @@ -293,8 +295,10 @@ int iforce_get_id_packet(struct iforce *
> set_current_state(TASK_INTERRUPTIBLE);
> add_wait_queue(&iforce->wait, &wait);
>
> - while (timeout && iforce->expect_packet)
> + while (timeout && iforce->expect_packet) {
> + set_current_state(TASK_INTERRUPTIBLE);
> timeout = schedule_timeout(timeout);
> + }
>
> set_current_state(TASK_RUNNING);
> remove_wait_queue(&iforce->wait, &wait);
What did I miss there? Why's this second one necessary?
Jon.
[-- 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
next prev parent reply other threads:[~2004-10-22 23:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-22 23:28 [KJ] [PATCH] input/iforce-packets: insert set_current_state() Nishanth Aravamudan
2004-10-22 23:33 ` Jon Masters [this message]
2004-10-22 23:41 ` Nishanth Aravamudan
2004-10-23 0:32 ` Jon Masters
2004-10-24 14:08 ` maximilian attems
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=35fb2e59041022163321ab05bc@mail.gmail.com \
--to=jonmasters@gmail.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.