]> git.hungrycats.org Git - linux/commit
[PATCH] fix unuse_pmd fixme
authorAndrew Morton <akpm@digeo.com>
Wed, 9 Apr 2003 04:30:44 +0000 (21:30 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Wed, 9 Apr 2003 04:30:44 +0000 (21:30 -0700)
commit6f924b79e72dc3935d2f23d5e81bffd0a8a517ad
tree1278983c3ecb7f41562be14032bd6b871022a777
parent9549db1d6217b9295655bd02e59cac26c6b3d516
[PATCH] fix unuse_pmd fixme

From: Hugh Dickins <hugh@veritas.com>

try_to_unuse drop mmlist_lock across unuse_process (with pretty dance
of atomic_incs and mmputs of various mmlist markers, and a polite new
cond_resched there), so unuse_process can pte_chain_alloc(GFP_KERNEL)
and pass that down and down and down and down to unuse_pte: which
cannot succeed more than once on a given mm (make that explicit by
returning back up once succeeded).  Preliminary checks moved up from
unuse_pte to unuse_pmd, and done more efficiently (avoid that extra
pte_file test added recently), swapoff spends far too long in here.
Updated locking comments and references to try_to_swap_out.
mm/swapfile.c