diff options
author | Hugh Dickins <hugh@veritas.com> | 2008-02-04 22:28:46 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 09:44:15 -0800 |
commit | 2e441889c38fe1b6ef6b963e6993076aa120176c (patch) | |
tree | f8cc99d2b8a3b90c6ff2c3e6d14e90d7edd95d7e /crypto/ecb.c | |
parent | 8952898b0d25223f38daf46b86156fd1c4d17ad0 (diff) | |
download | blackbird-op-linux-2e441889c38fe1b6ef6b963e6993076aa120176c.tar.gz blackbird-op-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 'crypto/ecb.c')
0 files changed, 0 insertions, 0 deletions