From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [PATCH] Celleb: improve htab lock
Date: Fri, 09 Feb 2007 09:32:07 +1100 [thread overview]
Message-ID: <1170973927.2620.382.camel@localhost.localdomain> (raw)
In-Reply-To: <200702082143.10213.arnd@arndb.de>
On Thu, 2007-02-08 at 21:43 +0100, Arnd Bergmann wrote:
> On Thursday 08 February 2007 21:28, Christoph Hellwig wrote:
> > Also if we're sure that this is
> > always called from process context and with irqs enabled we should
> > be using local_irq_disable/local_irq_enable and avoid saving the
> > flags word.
>
> Right, that's what I meant, I was a little confused here.
I prefer saving for now. We can be called whenever there is a
flush_tlb_pending() called for flushing a pending batch and that is in
quite a few places including deep in the context switching code, I
wouldn't make assumption on the irq state on entry.
I do intend at one point to move the local_irq_save/restore up a level
though, so that all the htab functions have the same semantic of being
called with IRQs off. Right now, the invalidate ones are sort-of an
exception.
Ben.
next prev parent reply other threads:[~2007-02-08 22:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-08 6:18 [PATCH] Celleb: improve htab lock Ishizaki Kou
2007-02-08 6:51 ` Arnd Bergmann
2007-02-08 20:28 ` Christoph Hellwig
2007-02-08 20:43 ` Arnd Bergmann
2007-02-08 22:32 ` Benjamin Herrenschmidt [this message]
2007-02-09 6:44 ` Akira Iguchi
2007-02-08 22:30 ` Benjamin Herrenschmidt
2007-02-08 21:20 ` Benjamin Herrenschmidt
[not found] <200702090643.l196hHDv006227@toshiba.co.jp>
2007-02-09 6:52 ` Benjamin Herrenschmidt
-- strict thread matches above, loose matches on Subject: below --
2007-02-09 7:53 Akira Iguchi
2007-02-09 9:19 ` Arnd Bergmann
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=1170973927.2620.382.camel@localhost.localdomain \
--to=benh@kernel.crashing.org \
--cc=arnd@arndb.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).