The patch titled hugetlb: fix dynamic pool resize failure case has been removed from the -mm tree. Its filename was hugetlb-fix-dynamic-pool-resize-failure-case.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: hugetlb: fix dynamic pool resize failure case From: Adam Litke <agl@xxxxxxxxxx> When gather_surplus_pages() fails to allocate enough huge pages to satisfy the requested reservation, it frees what it did allocate back to the buddy allocator. put_page() should be called instead of update_and_free_page() to ensure that pool counters are updated as appropriate and the page's refcount is decremented. Signed-off-by: Adam Litke <agl@xxxxxxxxxx> Acked-by: Dave Hansen <haveblue@xxxxxxxxxx> Cc: David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx> Cc: William Lee Irwin III <wli@xxxxxxxxxxxxxx> Cc: Badari Pulavarty <pbadari@xxxxxxxxxx> Cc: Ken Chen <kenchen@xxxxxxxxxx> Cc: Lee Schermerhorn <lee.schermerhorn@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/hugetlb.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff -puN mm/hugetlb.c~hugetlb-fix-dynamic-pool-resize-failure-case mm/hugetlb.c --- a/mm/hugetlb.c~hugetlb-fix-dynamic-pool-resize-failure-case +++ a/mm/hugetlb.c @@ -302,8 +302,17 @@ free: list_del(&page->lru); if ((--needed) >= 0) enqueue_huge_page(page); - else - update_and_free_page(page); + else { + /* + * Decrement the refcount and free the page using its + * destructor. This must be done with hugetlb_lock + * unlocked which is safe because free_huge_page takes + * hugetlb_lock before deciding how to free the page. + */ + spin_unlock(&hugetlb_lock); + put_page(page); + spin_lock(&hugetlb_lock); + } } return ret; _ Patches currently in -mm which might be from agl@xxxxxxxxxx are origin.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html