summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorHugh Dickins2008-02-05 07:28:46 +0100
committerLinus Torvalds2008-02-05 18:44:15 +0100
commit2e441889c38fe1b6ef6b963e6993076aa120176c (patch)
treef8cc99d2b8a3b90c6ff2c3e6d14e90d7edd95d7e /mm/shmem.c
parentswapin: fix valid_swaphandles defect (diff)
downloadkernel-qcow2-linux-2e441889c38fe1b6ef6b963e6993076aa120176c.tar.gz
kernel-qcow2-linux-2e441889c38fe1b6ef6b963e6993076aa120176c.tar.xz
kernel-qcow2-linux-2e441889c38fe1b6ef6b963e6993076aa120176c.zip
swapoff: scan ptes preemptibly
Provided that CONFIG_HIGHPTE is not set, unuse_pte_range can reduce latency in swapoff by scanning the page table preemptibly: so long as unuse_pte is careful to recheck that entry under pte lock. (To tell the truth, this patch was not inspired by any cries for lower latency here: rather, this restructuring permits a future memory controller patch to allocate with GFP_KERNEL in unuse_pte, where before it could not. But it would be wrong to tuck this change away inside a memcgroup patch.) Signed-off-by: Hugh Dickins <hugh@veritas.com> Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com> Tested-by: Balbir Singh <balbir@linux.vnet.ibm.com> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions