From: Luben Tuikov <luben@splentec.com>
To: linux-kernel@vger.kernel.org
Subject: reschedule twice from wake_up()?
Date: Tue, 12 Feb 2002 14:40:53 -0500 [thread overview]
Message-ID: <3C696FC5.E2DD43D7@splentec.com> (raw)
Scenario:
atomic_t start, end;
current is the only task in wq;
consumer does: wait_even_interruptible(wq, start != end)
producer does: end++; wakeup_interruptible(wq)
Is it possible that the task in wq will be scheduled twice,
once since end >= start (mod something) and again since,
wakeup_interruptible was called?
--
Luben
reply other threads:[~2002-02-12 19:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3C696FC5.E2DD43D7@splentec.com \
--to=luben@splentec.com \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox