Thread (22 messages) 22 messages, 6 authors, 2020-09-16

Re: [patch 00/13] preempt: Make preempt count unconditional

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2020-09-14 21:06:51
Also in: dri-devel, intel-gfx, linux-alpha, linux-mm, linux-um

On Mon, Sep 14, 2020 at 1:45 PM Thomas Gleixner [off-list ref] wrote:
Recently merged code does:

         gfp = preemptible() ? GFP_KERNEL : GFP_ATOMIC;

Looks obviously correct, except for the fact that preemptible() is
unconditionally false for CONFIF_PREEMPT_COUNT=n, i.e. all allocations in
that code use GFP_ATOMIC on such kernels.
I don't think this is a good reason to entirely get rid of the no-preempt thing.

The above is just garbage. It's bogus. You can't do it.

Blaming the no-preempt code for this bug is extremely unfair, imho.

And the no-preempt code does help make for much better code generation
for simple spinlocks.

Where is that horribly buggy recent code? It's not in that exact
format, certainly, since 'grep' doesn't find it.

             Linus

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help