From: Oleg Nesterov <oleg@tv-sign.ru>
To: linux-kernel@vger.kernel.org, Robert Love <rml@tech9.net>
Subject: Re: Q: preemptible kernel and interrupts consistency.
Date: Fri, 12 Jul 2002 02:07:27 +0400 [thread overview]
Message-ID: <3D2E019F.5561E609@tv-sign.ru> (raw)
In-Reply-To: 1026422904.1244.294.camel@sinai
Hello.
I am sorry, may be i do not understand something obvious.
Robert Love wrote:
> That was my point, aside from interrupt handlers all the
> need_resched-touching code is in sched.c and both Ingo and I verified
> everything is locked.
>
> If interrupts are disabled, there are no interrupts handlers. And if
> you are in an interrupt handler, preemption is already disabled.
Is it legal to call wake_up_process(some_task) from process context,
with irqs disabled, and current->preempt_count == 0 ?
Then current may have need_resched flag set, and task_rq_unlock() falls
into schedule().
Oleg.
prev parent reply other threads:[~2002-07-11 22:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-11 20:33 Q: preemptible kernel and interrupts consistency Oleg Nesterov
2002-07-11 20:41 ` Robert Love
2002-07-11 21:19 ` Oleg Nesterov
2002-07-11 21:28 ` Robert Love
2002-07-11 22:07 ` Oleg Nesterov [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=3D2E019F.5561E609@tv-sign.ru \
--to=oleg@tv-sign.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=rml@tech9.net \
/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.