From: George Anzinger <george@mvista.com>
To: "David S. Miller" <davem@redhat.com>
Cc: mkravetz@sequent.com, linux-kernel@vger.kernel.org
Subject: Re: test9: running tasks not in run-queue
Date: Thu, 09 Nov 2000 10:21:38 -0800 [thread overview]
Message-ID: <3A0AEB32.D7EBE448@mvista.com> (raw)
In-Reply-To: <20001108151148.B25050@w-mikek.des.sequent.com> <200011090104.RAA17535@pizda.ninka.net>
"David S. Miller" wrote:
>
> Date: Wed, 8 Nov 2000 15:11:49 -0800
> From: Mike Kravetz <mkravetz@sequent.com>
>
> The following code in __wake_up_common() is then
> executed:
>
> if (best_exclusive)
> best_exclusive->state = TASK_RUNNING;
> wq_write_unlock_irqrestore(&q->lock, flags);
>
> test10 fixes this error, now it sets TASK_RUNNING and
> adds the task back to the runqueue all under the runqueue
> lock.
In our preemptable kernel work we often put (or leave) tasks on the run
queue that are not in state TASK_RUNNING and want to treat them as if
they are in state TASK_RUNNING. We thus changed the test in schedule()
to "task_on_runqueue(prev)"....
George
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
prev parent reply other threads:[~2000-11-09 18:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-08 23:11 test9: running tasks not in run-queue Mike Kravetz
2000-11-09 1:04 ` David S. Miller
2000-11-09 18:21 ` George Anzinger [this message]
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=3A0AEB32.D7EBE448@mvista.com \
--to=george@mvista.com \
--cc=davem@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mkravetz@sequent.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox