diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2011-05-24 20:12:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-05-25 11:39:16 -0400 |
commit | e303297e6c3a7b847c4731eb14006ca6b435ecca (patch) | |
tree | c2bbec8fb0cad1405f4a3ff908cd1d22abcd3e77 /mm | |
parent | 267239116987d64850ad2037d8e0f3071dc3b5ce (diff) |
mm: extended batches for generic mmu_gather
Instead of using a single batch (the small on-stack, or an allocated
page), try and extend the batch every time it runs out and only flush once
either the extend fails or we're done.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Requested-by: Nick Piggin <npiggin@kernel.dk>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David Miller <davem@davemloft.net>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Richard Weinberger <richard@nod.at>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Nick Piggin <npiggin@kernel.dk>
Cc: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c index a77fd23ee68a..17193d74f302 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -994,8 +994,8 @@ static unsigned long zap_pte_range(struct mmu_gather *tlb, | |||
994 | spinlock_t *ptl; | 994 | spinlock_t *ptl; |
995 | int rss[NR_MM_COUNTERS]; | 995 | int rss[NR_MM_COUNTERS]; |
996 | 996 | ||
997 | init_rss_vec(rss); | ||
998 | again: | 997 | again: |
998 | init_rss_vec(rss); | ||
999 | pte = pte_offset_map_lock(mm, pmd, addr, &ptl); | 999 | pte = pte_offset_map_lock(mm, pmd, addr, &ptl); |
1000 | arch_enter_lazy_mmu_mode(); | 1000 | arch_enter_lazy_mmu_mode(); |
1001 | do { | 1001 | do { |