From: Mel Gorman <[EMAIL PROTECTED]>

get_huge_pages() currently depends on private-reserves to function properly
as it does not prefault regions even when HUGETLB_NO_PREFAULT is not set.
The impact is that on older kernels get_huge_pages() may return a pointer to
a hugepage-backed region that later faults with SIGBUS as the hugepage pool
is too small. A side-effect of this is that the get_huge_pages() regression
test fails on older kernels as get_huge_pages() returns a pointer when NULL
is expected.

This patchset begins by taking the prefault logic out of morecore.c and making
it a utility function. The second patch adds prefault logic to
get_huge_pages().


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to