From: Robert Hancock <hancockr@shaw.ca>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Help with 2.6.10 concurrency issue
Date: Thu, 09 Feb 2006 18:48:47 -0600 [thread overview]
Message-ID: <43EBE2EF.4080204@shaw.ca> (raw)
In-Reply-To: <5Erdv-5iS-39@gated-at.bofh.it>
martin rogers wrote:
> Problem is, the function writeList can be called from a H/W intr,
> and a workqueue (and that intr could of course happen while either
> the workqueue or the tasklet is running, right?).
>
> If I use spin_lock_irqsave in writeList, it protects against the intr
> but not the tasklet.
Yes, it protects against the tasklet as well. Disabling interrupts also
implicity disables BH execution (tasklets).
If I use spin_lock_bh, I don't get protection
> from the intr I think; plus, I get :
>
> Badness in local_bh_enable at kernel/softirq.c:142
>
> when the intr runs (what does this mean?).
It means you're enabling BHs when interrupts are disabled, which doesn't
make any sense. You can't use spin_lock_bh/spin_unlock_bh when
interrupts are disabled.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
next parent reply other threads:[~2006-02-10 0:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <5Erdv-5iS-39@gated-at.bofh.it>
2006-02-10 0:48 ` Robert Hancock [this message]
2006-02-09 21:08 Help with 2.6.10 concurrency issue martin rogers
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=43EBE2EF.4080204@shaw.ca \
--to=hancockr@shaw.ca \
--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