]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] mm: arches skip ptlock
authorHugh Dickins <hugh@veritas.com>
Sun, 30 Oct 2005 01:16:24 +0000 (18:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 30 Oct 2005 04:40:40 +0000 (21:40 -0700)
commit9641c8d33939d72250b401a54bd65782c62ee046
treec4d9be08f67b0ffdc66c3e170614bd03945f3c42
parent795ca254d27be057b8937ecab3497d28bcd91192
[PATCH] mm: arches skip ptlock

Convert those few architectures which are calling pud_alloc, pmd_alloc,
pte_alloc_map on a user mm, not to take the page_table_lock first, nor drop it
after.  Each of these can continue to use pte_alloc_map, no need to change
over to pte_alloc_map_lock, they're neither racy nor swappable.

In the sparc64 io_remap_pfn_range, flush_tlb_range then falls outside of the
page_table_lock: that's okay, on sparc64 it's like flush_tlb_mm, and that has
always been called from outside of page_table_lock in dup_mmap.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/arm/mm/mm-armv.c
arch/arm26/mm/memc.c
arch/sparc/mm/generic.c
arch/sparc64/mm/generic.c
arch/um/kernel/skas/mmu.c