thp: freeze khugepaged and ksmd
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:47:10 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:46 +0000 (17:32 -0800)
commit878aee7d6b5504e01b9caffce080e792b6b8d090
treec4a01a78885c25b6b3b1e0c74af7cb83c98a07c5
parent8ee53820edfd1f3b6554c593f337148dd3d7fc91
thp: freeze khugepaged and ksmd

It's unclear why schedule friendly kernel threads can't be taken away by
the CPU through the scheduler itself.  It's safer to stop them as they can
trigger memory allocation, if kswapd also freezes itself to avoid
generating I/O they have too.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
mm/ksm.c