Re: [PATCH 3/4] powerpc: Add mm_cpumask warning when context switching

2023-08-18 Thread Michael Ellerman
Nicholas Piggin writes: > When context switching away from an mm, add a CONFIG_DEBUG_VM warning > check to ensure this CPU is still set in the mask. This could catch > bugs where the mask is improperly trimmed while the CPU is still using > the mm. > > Signed-off-by: Nicholas Piggin > --- > arch

[PATCH 3/4] powerpc: Add mm_cpumask warning when context switching

2023-05-23 Thread Nicholas Piggin
When context switching away from an mm, add a CONFIG_DEBUG_VM warning check to ensure this CPU is still set in the mask. This could catch bugs where the mask is improperly trimmed while the CPU is still using the mm. Signed-off-by: Nicholas Piggin --- arch/powerpc/mm/mmu_context.c | 7 +-- 1