The patch titled Subject: mm: remove __GFP_NOFAIL is deprecated comment has been added to the -mm tree. Its filename is mm-remove-__gfp_nofail-is-deprecated-comment.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-remove-__gfp_nofail-is-deprecated-comment.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-remove-__gfp_nofail-is-deprecated-comment.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Michal Hocko <mhocko@xxxxxxxx> Subject: mm: remove __GFP_NOFAIL is deprecated comment 647757197cd3 ("mm: clarify __GFP_NOFAIL deprecation status") was incomplete and didn't remove the comment about __GFP_NOFAIL being deprecated in buffered_rmqueue. Let's get rid of this leftover but keep the WARN_ON_ONCE for order > 1 because we should really discourage from using __GFP_NOFAIL with higher order allocations because those are just too subtle. Signed-off-by: Michal Hocko <mhocko@xxxxxxxx> Reviewed-by: Nikolay Borisov <kernel@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/page_alloc.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff -puN mm/page_alloc.c~mm-remove-__gfp_nofail-is-deprecated-comment mm/page_alloc.c --- a/mm/page_alloc.c~mm-remove-__gfp_nofail-is-deprecated-comment +++ a/mm/page_alloc.c @@ -2347,19 +2347,11 @@ struct page *buffered_rmqueue(struct zon list_del(&page->lru); pcp->count--; } else { - if (unlikely(gfp_flags & __GFP_NOFAIL)) { - /* - * __GFP_NOFAIL is not to be used in new code. - * - * All __GFP_NOFAIL callers should be fixed so that they - * properly detect and handle allocation failures. - * - * We most definitely don't want callers attempting to - * allocate greater than order-1 page units with - * __GFP_NOFAIL. - */ - WARN_ON_ONCE(order > 1); - } + /* + * We most definitely don't want callers attempting to + * allocate greater than order-1 page units with __GFP_NOFAIL. + */ + WARN_ON_ONCE((gfp_flags & __GFP_NOFAIL) && (order > 1)); spin_lock_irqsave(&zone->lock, flags); page = NULL; _ Patches currently in -mm which might be from mhocko@xxxxxxxx are mm-vmscan-make-zone_reclaimable_pages-more-precise.patch mm-oom-introduce-oom-reaper.patch oom-reaper-handle-mlocked-pages.patch oom-clear-tif_memdie-after-oom_reaper-managed-to-unmap-the-address-space.patch mm-oom_reaper-report-success-failure.patch mm-oom_reaper-report-success-failure-fix-2.patch mm-oom_reaper-implement-oom-victims-queuing.patch oom-make-oom_reaper-freezable.patch oom-oom_reaper-disable-oom_reaper-for-oom_kill_allocating_task.patch mm-remove-__gfp_nofail-is-deprecated-comment.patch mm-oom-rework-oom-detection.patch mm-throttle-on-io-only-when-there-are-too-many-dirty-and-writeback-pages.patch mm-use-watermak-checks-for-__gfp_repeat-high-order-allocations.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