From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: + mm-clarify-__gfp_memalloc-usage-update.patch added to -mm tree Date: Wed, 08 Apr 2020 18:25:37 -0700 Message-ID: <20200409012537.rEJNERcf1%akpm@linux-foundation.org> References: <20200406200254.a69ebd9e08c4074e41ddebaf@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.29.99]:47846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbgDIBZi (ORCPT ); Wed, 8 Apr 2020 21:25:38 -0400 In-Reply-To: <20200406200254.a69ebd9e08c4074e41ddebaf@linux-foundation.org> Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: jhubbard@nvidia.com, joel@joelfernandes.org, mhocko@kernel.org, mhocko@suse.com, mm-commits@vger.kernel.org, neilb@suse.de, paulmck@kernel.org, rientjes@google.com The patch titled Subject: mm-clarify-__gfp_memalloc-usage-update has been added to the -mm tree. Its filename is mm-clarify-__gfp_memalloc-usage-update.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-clarify-__gfp_memalloc-usage-update.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-clarify-__gfp_memalloc-usage-update.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Michal Hocko Subject: mm-clarify-__gfp_memalloc-usage-update Link: http://lkml.kernel.org/r/20200406070137.GC19426@dhcp22.suse.cz Signed-off-by: Michal Hocko Cc: David Rientjes Cc: Joel Fernandes Cc: John Hubbard Cc: Neil Brown Cc: Paul E. McKenney Signed-off-by: Andrew Morton --- include/linux/gfp.h | 2 ++ 1 file changed, 2 insertions(+) --- a/include/linux/gfp.h~mm-clarify-__gfp_memalloc-usage-update +++ a/include/linux/gfp.h @@ -113,6 +113,8 @@ struct vm_area_struct; * Users of this flag have to be extremely careful to not deplete the reserve * completely and implement a throttling mechanism which controls the consumption * of the reserve based on the amount of freed memory. + * Usage of a pre-allocated pool (e.g. mempool) should be always considered before + * using this flag. * * %__GFP_NOMEMALLOC is used to explicitly forbid access to emergency reserves. * This takes precedence over the %__GFP_MEMALLOC flag if both are set. _ Patches currently in -mm which might be from mhocko@kernel.org are mm-clarify-__gfp_memalloc-usage-update.patch