mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
vmalloc() heavy workloads in UML are extremely slow, due to flushing the entire kernel VM space (flush_tlb_kernel_vm()) on the first segfault. Implement flush_cache_vmap() to avoid that, and while at it also add flush_cache_vunmap() since it's trivial. This speeds up my vmalloc() heavy test of copying files out from /sys/kernel/debug/gcov/ by 30x (from 30s to 1s.) Signed-off-by: Johannes Berg <[email protected]> Acked-By: Anton Ivanov <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
10 lines
257 B
C
10 lines
257 B
C
#ifndef __UM_ASM_CACHEFLUSH_H
|
|
#define __UM_ASM_CACHEFLUSH_H
|
|
|
|
#include <asm/tlbflush.h>
|
|
#define flush_cache_vmap flush_tlb_kernel_range
|
|
#define flush_cache_vunmap flush_tlb_kernel_range
|
|
|
|
#include <asm-generic/cacheflush.h>
|
|
#endif /* __UM_ASM_CACHEFLUSH_H */
|