From: Sebastien Dugue <sebastien.dugue@bull•net>
To: benh@kernel•crashing.org
Cc: dwalker@mvista•com, tinytim@us•ibm.com,
linux-rt-users@vger•kernel.org, jean-pierre.dion@bull•net,
rostedt@goodmis•org, linux-kernel@vger•kernel.org,
michael@ellerman•id.au, linuxppc-dev@ozlabs•org,
paulus@samba•org, gilles.carry@ext•bull.net, tglx@linutronix•de
Subject: Re: [PATCH 2/2] powerpc - Make the irq reverse mapping radix tree lockless
Date: Thu, 4 Sep 2008 09:22:52 +0200 [thread overview]
Message-ID: <20080904092252.12b3df4a@bull.net> (raw)
In-Reply-To: <1220496739.4879.20.camel@pasglop>
On Thu, 04 Sep 2008 12:52:19 +1000 Benjamin Herrenschmidt <benh@kernel•crashing.org> wrote:
> On Wed, 2008-09-03 at 15:41 +0200, Sebastien Dugue wrote:
> > On Wed, 20 Aug 2008 15:23:01 +1000 Benjamin Herrenschmidt <benh@kernel•crashing.org> wrote:
> >
> > > BTW. It would be good to try to turn the GFP_ATOMIC into GFP_KERNEL,
> >
> > That would be nice indeed
> >
> > > maybe using a semaphore instead of a lock to protect insertion vs.
> > > initialisation.
> >
> > a semaphore? are you meaning a mutex? If not, I fail to understand what you're
> > implying.
>
> Right, a mutex, bad habit calling those semaphores from the old days :-)
OK, then we're on the same line ;-)
>
> > Right, that's the problem with this new scheme and I'm still trying
> > to find a way to handle memory allocation failures be it for GFP_ATOMIC or
> > GFP_KERNEL.
> >
> > I could not think of anything simple so far and I'm open for suggestions.
>
> GFP_KERNEL should not fail, it will just block no ?
No it won't block and will fail (returns NULL).
> If it fails, it's
> probably catastrophic enough not to care.
Yep, I'd tend to agree with that.
> You can always fallback to linear lookup.
I will have to add that back as there is no more fallback.
> I don't know if it's worth trying to fire off a new
> allocation attempt later, probably not.
I've been pondering with this lately, but I think that adding a linear
lookup fallback should be OK.
Thanks,
Sebastien.
>
> Ben.
>
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs•org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
>
next prev parent reply other threads:[~2008-09-04 7:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 13:30 [PATCH 0/2 V3] powerpc - Make the irq reverse mapping tree lockless Sebastien Dugue
2008-08-06 13:30 ` [PATCH 1/2] powerpc - Separate the irq radix tree insertion and lookup Sebastien Dugue
2008-08-20 5:21 ` Benjamin Herrenschmidt
2008-09-03 13:34 ` Sebastien Dugue
2008-08-06 13:30 ` [PATCH 2/2] powerpc - Make the irq reverse mapping radix tree lockless Sebastien Dugue
2008-08-20 5:22 ` Benjamin Herrenschmidt
2008-09-03 13:34 ` Sebastien Dugue
2008-08-20 5:23 ` Benjamin Herrenschmidt
2008-09-03 13:41 ` Sebastien Dugue
2008-09-04 2:52 ` Benjamin Herrenschmidt
2008-09-04 7:22 ` Sebastien Dugue [this message]
2008-09-04 7:34 ` Benjamin Herrenschmidt
2008-09-04 7:55 ` Sebastien Dugue
2008-09-04 7:58 ` Benjamin Herrenschmidt
2008-09-04 8:04 ` Sebastien Dugue
-- strict thread matches above, loose matches on Subject: below --
2008-09-04 12:37 [PATCH 0/2 V4] powerpc - Make the irq reverse mapping " Sebastien Dugue
2008-09-04 12:37 ` [PATCH 2/2] powerpc - Make the irq reverse mapping radix " Sebastien Dugue
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=20080904092252.12b3df4a@bull.net \
--to=sebastien.dugue@bull$(echo .)net \
--cc=benh@kernel$(echo .)crashing.org \
--cc=dwalker@mvista$(echo .)com \
--cc=gilles.carry@ext$(echo .)bull.net \
--cc=jean-pierre.dion@bull$(echo .)net \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-rt-users@vger$(echo .)kernel.org \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=michael@ellerman$(echo .)id.au \
--cc=paulus@samba$(echo .)org \
--cc=rostedt@goodmis$(echo .)org \
--cc=tglx@linutronix$(echo .)de \
--cc=tinytim@us$(echo .)ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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