From: Robert Love <rml@tech9.net>
To: Emmanuel Michon <emmanuel_michon@realmagic.fr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: spinlocking between user context / tasklet / tophalf question
Date: 26 Apr 2002 15:19:35 -0400 [thread overview]
Message-ID: <1019848780.2045.617.camel@phantasy> (raw)
In-Reply-To: <7wwuuu4zam.fsf@avalon.france.sdesigns.com>
On Fri, 2002-04-26 at 04:52, Emmanuel Michon wrote:
> 1. Should I use spin_lock(&Y_lock); or spin_lock_bh(&Y_lock); in the tasklet
> body?
You would want to use spin_lock_bh to serialize against other softirqs.
That does not seem to be a need, here.
> 2. What is the reality behind: ``things which sleep'', is it really a problem
> to use copy_from_user/copy_to_user holding a spinlock?
Yes, they sleep.
Robert Love
next prev parent reply other threads:[~2002-04-26 19:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-26 8:52 spinlocking between user context / tasklet / tophalf question Emmanuel Michon
2002-04-26 16:33 ` george anzinger
2002-04-27 19:13 ` Alan Cox
2002-04-26 19:19 ` Robert Love [this message]
2002-04-27 22:52 ` Daniel Phillips
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=1019848780.2045.617.camel@phantasy \
--to=rml@tech9.net \
--cc=emmanuel_michon@realmagic.fr \
--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