From: Massimiliano Hofer <max@nucleus.it>
To: netfilter-devel@lists.netfilter.org
Cc: "Giacomo S." <delleceste@gmail.com>
Subject: Re: information about kernel locking issue
Date: Sat, 1 Jul 2006 22:29:52 +0200 [thread overview]
Message-ID: <200607012229.53134.max@nucleus.it> (raw)
In-Reply-To: <200607011355.41921.delleceste@gmail.com>
On Saturday 1 July 2006 1:55 pm, Giacomo S. wrote:
> I think the problem is that read_lock_bh is not correct, perhaps
> i would need read_lock_irq instead??
Your code snippet doesn't show how the function is called. If this is invoked
by (*match)() you are in a soft interrupt context and should use read_lock().
read_lock_bh() is what you use in process context when a soft interrupt may
use write_lock().
I don't think this needs read_lock_irq() and I can't find any IRQ using it,
but someone with more experience may disagree with me.
--
Bye,
Massimiliano Hofer
next prev parent reply other threads:[~2006-07-01 20:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-01 11:55 information about kernel locking issue Giacomo S.
2006-07-01 20:29 ` Massimiliano Hofer [this message]
2006-07-02 8:08 ` Giacomo
2006-07-10 22:39 ` Gregor Maier
2006-07-10 23:41 ` Massimiliano Hofer
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=200607012229.53134.max@nucleus.it \
--to=max@nucleus.it \
--cc=delleceste@gmail.com \
--cc=netfilter-devel@lists.netfilter.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 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.