From: Joe Korty <joe.korty@ccur.com>
To: Arjan van de Ven <arjan@infradead.org>
Cc: Christoph Hellwig <hch@infradead.org>,
mingo@elte.hu, akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: Define __raw_read_lock etc for uniprocessor builds
Date: Tue, 24 Jan 2006 13:38:08 -0500 [thread overview]
Message-ID: <20060124183808.GA16507@tsunami.ccur.com> (raw)
In-Reply-To: <1138127523.2977.70.camel@laptopd505.fenrus.org>
On Tue, Jan 24, 2006 at 07:32:02PM +0100, Arjan van de Ven wrote:
> On Tue, 2006-01-24 at 13:29 -0500, Joe Korty wrote:
> > On Tue, Jan 24, 2006 at 06:17:12PM +0000, Christoph Hellwig wrote:
> > > On Tue, Jan 24, 2006 at 01:09:54PM -0500, Joe Korty wrote:
> > > >
> > > > Make NOPed versions of __raw_read_lock and family available
> > > > under uniprocessor kernels.
> > > >
> > > > Discovered when compiling a uniprocessor kernel with the
> > > > fusyn patch applied.
> > > >
> > > > The standard kernel does not use __raw_read_lock etc
> > > > outside of spinlock.c, which may account for this bug
> > > > being undiscovered until now.
> > >
> > > No one should call these directly. Please fix your odd patch instead.
> >
> > Actually the patch calls the _raw version which is #defined to the __raw
> > version. So it is doing the correct thing.
>
> no it's not, it has no business calling the _raw version either.
Nope.
1) The _raw_spin_lock family is used everywhere in the kernel. Why the
arbitrary special rule for _raw_read_lock?????? It makes no sense.
2) The _raw versions are intended to be used in places where it is
known that preemption is already disabled, so that the overhead of
re-disabling/enabling it can be avoided.
Joe
--
"All the revision in the world will not save a bad first draft, for the
architecture of the thing comes, or fails to come, in the first conception,
and revision only affects the detail and ornament. -- T.E. Lawrence
next prev parent reply other threads:[~2006-01-24 18:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-24 18:09 Define __raw_read_lock etc for uniprocessor builds Joe Korty
2006-01-24 18:17 ` Christoph Hellwig
2006-01-24 18:29 ` Joe Korty
2006-01-24 18:32 ` Arjan van de Ven
2006-01-24 18:38 ` Joe Korty [this message]
2006-01-24 18:42 ` Arjan van de Ven
2006-01-24 18:59 ` Joe Korty
2006-01-24 21:05 ` Ingo Molnar
2006-01-24 21:12 ` Ingo Molnar
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=20060124183808.GA16507@tsunami.ccur.com \
--to=joe.korty@ccur.com \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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.