ksm: cond_resched in unstable tree
authorHugh Dickins <hugh.dickins@tiscali.co.uk>
Mon, 9 Nov 2009 15:58:23 +0000 (15:58 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 9 Nov 2009 17:55:44 +0000 (09:55 -0800)
commitd178f27fc5150d680d9df865ea9dfe3269cf00a6
treec2e87a755ce78765a8dd7752d7608c57ace29bec
parentb7b69c7e97bc0a6694e7052a200609fd48baafc2
ksm: cond_resched in unstable tree

KSM needs a cond_resched() for CONFIG_PREEMPT_NONE, in its unbounded
search of the unstable tree.  The stable tree cases already have one,
and originally there was one down inside get_user_pages();
but I missed it when I converted to follow_page() instead.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Acked-by: Izik Eidus <ieidus@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/ksm.c