Thread (2 messages) flat view 2 messages, 2 authors, 2021-08-18

Re: [PATCH] powerpc/non-smp: Inconditionaly call smp_mb() on switch_mm

From: Michael Ellerman <hidden>
Date: 2021-08-18 13:46:08
Also in: lkml

On Mon, 5 Jul 2021 12:00:50 +0000 (UTC), Christophe Leroy wrote:
Commit 3ccfebedd8cf ("powerpc, membarrier: Skip memory barrier in
switch_mm()") added some logic to skip the smp_mb() in
switch_mm_irqs_off() before the call to switch_mmu_context().

However, on non SMP smp_mb() is just a compiler barrier and doing
it inconditionaly is simpler than the logic used to check
whether the barrier is needed or not.

[...]
Applied to powerpc/next.

[1/1] powerpc/non-smp: Inconditionaly call smp_mb() on switch_mm
      https://git.kernel.org/powerpc/c/c8a6d91005343dea0d53be0ff0620c66934dcd44

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help