[PATCH 2/3] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to MM CPUs

2023-04-04 Thread Yair Podemsky
the affected mm. Signed-off-by: Yair Podemsky Suggested-by: David Hildenbrand --- include/asm-generic/tlb.h | 4 ++-- mm/khugepaged.c | 4 ++-- mm/mmu_gather.c | 17 - 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/include/asm-generic/tlb.h b

[PATCH 3/3] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to CPUs in kernel mode

2023-04-04 Thread Yair Podemsky
in which case it is still in the kernel. Signed-off-by: Yair Podemsky --- mm/mmu_gather.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/mm/mmu_gather.c b/mm/mmu_gather.c index 5ea9be6fb87c..731d955e152d 100644 --- a/mm/mmu_gather.c +++ b/mm/mmu_gather.

[PATCH 1/3] arch: Introduce ARCH_HAS_CPUMASK_BITS

2023-04-04 Thread Yair Podemsky
Some architectures set and maintain the mm_cpumask bits when loading or removing process from cpu. This Kconfig will mark those to allow different behavior between kernels that maintain the mm_cpumask and those that do not. Signed-off-by: Yair Podemsky --- arch/Kconfig | 8

[PATCH 0/3] send tlb_remove_table_smp_sync IPI only to necessary CPUs

2023-04-04 Thread Yair Podemsky
to differentiate architectures that support mm_cpumask from those that don't will allow safe usage of this feature. Yair Podemsky (3): arch: Introduce ARCH_HAS_CPUMASK_BITS mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to MM CPUs mm/mmu_gather: send tlb_remove_table_smp_sync IPI only

[PATCH v2 0/2] send tlb_remove_table_smp_sync IPI only to necessary CPUs

2023-06-20 Thread Yair Podemsky
the mask used should be cpu_online_mask (Peter Zijlstra). v1: https://lore.kernel.org/all/20230404134224.137038-1-ypode...@redhat.com/ Yair Podemsky (2): arch: Introduce ARCH_HAS_CPUMASK_BITS mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to MM CPUs arch/Kconfig | 8

[PATCH v2 2/2] mm/mmu_gather: send tlb_remove_table_smp_sync IPI only to MM CPUs

2023-06-20 Thread Yair Podemsky
the affected mm. Signed-off-by: Yair Podemsky Suggested-by: David Hildenbrand --- include/asm-generic/tlb.h | 4 ++-- mm/khugepaged.c | 4 ++-- mm/mmu_gather.c | 17 - 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/include/asm-generic/tlb.h b

[PATCH v2 1/2] arch: Introduce ARCH_HAS_CPUMASK_BITS

2023-06-20 Thread Yair Podemsky
Some architectures set and maintain the mm_cpumask bits when loading or removing process from cpu. This Kconfig will mark those to allow different behavior between kernels that maintain the mm_cpumask and those that do not. Signed-off-by: Yair Podemsky --- arch/Kconfig | 8