[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200929081938.GC22035@dhcp22.suse.cz>
Date: Tue, 29 Sep 2020 10:23:24 +0200
From: Michal Hocko <mhocko@...e.com>
To: Daniel Vetter <daniel@...ll.ch>
Cc: "Paul E. McKenney" <paulmck@...nel.org>,
Juri Lelli <juri.lelli@...hat.com>,
Peter Zijlstra <peterz@...radead.org>,
Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Lai Jiangshan <jiangshanlai@...il.com>,
dri-devel <dri-devel@...ts.freedesktop.org>,
Ben Segall <bsegall@...gle.com>, Linux-MM <linux-mm@...ck.org>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@...r.kernel.org>, linux-hexagon@...r.kernel.org,
Will Deacon <will@...nel.org>, Ingo Molnar <mingo@...nel.org>,
Anton Ivanov <anton.ivanov@...bridgegreys.com>,
linux-arch <linux-arch@...r.kernel.org>,
Vincent Guittot <vincent.guittot@...aro.org>,
Herbert Xu <herbert@...dor.apana.org.au>,
Brian Cain <bcain@...eaurora.org>,
Richard Weinberger <richard@....at>,
Russell King <linux@...linux.org.uk>,
Ard Biesheuvel <ardb@...nel.org>,
David Airlie <airlied@...ux.ie>,
Ingo Molnar <mingo@...hat.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Mel Gorman <mgorman@...e.de>,
intel-gfx <intel-gfx@...ts.freedesktop.org>,
Matt Turner <mattst88@...il.com>,
Valentin Schneider <valentin.schneider@....com>,
linux-xtensa@...ux-xtensa.org, Shuah Khan <shuah@...nel.org>,
Jeff Dike <jdike@...toit.com>,
linux-um <linux-um@...ts.infradead.org>,
Josh Triplett <josh@...htriplett.org>,
Steven Rostedt <rostedt@...dmis.org>, rcu@...r.kernel.org,
linux-m68k <linux-m68k@...ts.linux-m68k.org>,
Ivan Kokshaysky <ink@...assic.park.msu.ru>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
Thomas Gleixner <tglx@...utronix.de>,
Dietmar Eggemann <dietmar.eggemann@....com>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
Richard Henderson <rth@...ddle.net>,
Chris Zankel <chris@...kel.net>,
Max Filippov <jcmvbkbc@...il.com>,
Daniel Bristot de Oliveira <bristot@...hat.com>,
LKML <linux-kernel@...r.kernel.org>,
alpha <linux-alpha@...r.kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [patch 00/13] preempt: Make preempt count unconditional
On Wed 16-09-20 23:43:02, Daniel Vetter wrote:
> I can
> then figure out whether it's better to risk not spotting issues with
> call_rcu vs slapping a memalloc_noio_save/restore around all these
> critical section which force-degrades any allocation to GFP_ATOMIC at
did you mean memalloc_noreclaim_* here?
> most, but has the risk that we run into code that assumes "GFP_KERNEL
> never fails for small stuff" and has a decidedly less tested fallback
> path than rcu code.
Even if the above then please note that memalloc_noreclaim_* or
PF_MEMALLOC should be used with an extreme care. Essentially only for
internal memory reclaimers. It grants access to _all_ the available
memory so any abuse can be detrimental to the overall system operation.
Allocation failure in this mode means that we are out of memory and any
code relying on such an allocation has to carefuly consider failure.
This is not a random allocation mode.
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists