]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm, thp: allow fallback when pte_alloc_one() fails for huge pmd
authorDavid Rientjes <rientjes@google.com>
Wed, 25 Apr 2012 01:03:30 +0000 (11:03 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:18 +0000 (15:17 +1000)
commit80524e88d4660b5e30551746c50f9a752b488032
tree4febd9069d0d074d086bfdc773d93628f8b53533
parent586d30c0edd1c77f46400b27b192afaa0d738473
mm, thp: allow fallback when pte_alloc_one() fails for huge pmd

The transparent hugepages feature is careful to not invoke the oom killer
when a hugepage cannot be allocated.

pte_alloc_one() failing in __do_huge_pmd_anonymous_page(), however,
currently results in VM_FAULT_OOM which invokes the pagefault oom killer
to kill a memory-hogging task.

This is unnecessary since it's possible to drop the reference to the
hugepage and fallback to allocating a small page.

Signed-off-by: David Rientjes <rientjes@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c