From: David Woodhouse <dwmw2@infradead.org>
To: Brian Strand <bstrand@switchmanagement.com>
Cc: Wayne Cuddy <wcuddy@crb-web.com>,
Linux Kernel List <linux-kernel@vger.kernel.org>
Subject: Re: Synchronization Techniques in 2.2 Kernel
Date: Thu, 27 Sep 2001 22:07:24 +0100 [thread overview]
Message-ID: <19474.1001624844@redhat.com> (raw)
In-Reply-To: <3BB38D4E.5000100@switchmanagement.com>
In-Reply-To: <3BB38D4E.5000100@switchmanagement.com> <20010927141238.E5125@crb-web.com>
bstrand@switchmanagement.com said:
> I apologize in advance if this is not quite right, having only done
> "hello world" kernel modules thus far (plus a good deal of kernel
> source browsing). I think you need to "unfold" the
> interruptible_sleep_on call and do it yourself by adding current to
> the wait queue before checking any cards, setting current->state =
> TASK_INTERRUPTIBLE, then checking all cards and if none has data,
> calling schedule.
You're right. It is very difficult to use sleep_on() and friends safely,
and for that reason the plan is (or at least _has_ been) to take them all
away in 2.5.
--
dwmw2
prev parent reply other threads:[~2001-09-27 21:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-27 19:12 Synchronization Techniques in 2.2 Kernel Wayne Cuddy
2001-09-27 20:34 ` Brian Strand
2001-09-27 21:07 ` David Woodhouse [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=19474.1001624844@redhat.com \
--to=dwmw2@infradead.org \
--cc=bstrand@switchmanagement.com \
--cc=linux-kernel@vger.kernel.org \
--cc=wcuddy@crb-web.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