Thread (80 messages) 80 messages, 8 authors, 2025-11-24

Re: [PATCH v4 09/12] powerpc/mm: replace batch->active with in_lazy_mmu_mode()

From: David Hildenbrand <hidden>
Date: 2025-11-03 16:05:52
Also in: linux-arm-kernel, linux-mm, lkml, sparclinux, xen-devel

On 29.10.25 11:09, Kevin Brodsky wrote:
A per-CPU batch struct is activated when entering lazy MMU mode; its
lifetime is the same as the lazy MMU section (it is deactivated when
leaving the mode). Preemption is disabled in that interval to ensure
that the per-CPU reference remains valid.

The generic lazy_mmu layer now tracks whether a task is in lazy MMU
mode. We can therefore use the generic helper in_lazy_mmu_mode()
to tell whether a batch struct is active instead of tracking it
explicitly.

Signed-off-by: Kevin Brodsky <redacted>
---
I suspect you were not able to test this on real HW. Some help from the 
ppc folks would be appreciated.

LGTM, but the interaction with pause/resume adds a bit of complication 
on top.

Acked-by: David Hildenbrand <redacted>

-- 
Cheers

David

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