From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: cleanup gfp mask in alloc_skb_with_frags Date: Sat, 30 Jun 2018 20:19:17 +0900 (KST) Message-ID: <20180630.201917.1237479559141460617.davem@davemloft.net> References: <20180628155306.29038-1-mhocko@kernel.org> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, mhocko@suse.com To: mhocko@kernel.org Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:37260 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754852AbeF3LTU (ORCPT ); Sat, 30 Jun 2018 07:19:20 -0400 In-Reply-To: <20180628155306.29038-1-mhocko@kernel.org> Sender: netdev-owner@vger.kernel.org List-ID: From: Michal Hocko Date: Thu, 28 Jun 2018 17:53:06 +0200 > From: Michal Hocko > > alloc_skb_with_frags uses __GFP_NORETRY for non-sleeping allocations > which is just a noop and a little bit confusing. > > __GFP_NORETRY was added by ed98df3361f0 ("net: use __GFP_NORETRY for > high order allocations") to prevent from the OOM killer. Yet this was > not enough because fb05e7a89f50 ("net: don't wait for order-3 page > allocation") didn't want an excessive reclaim for non-costly orders > so it made it completely NOWAIT while it preserved __GFP_NORETRY in > place which is now redundant. > > Drop the pointless __GFP_NORETRY because this function is used as > copy&paste source for other places. > > Reviewed-by: Eric Dumazet > Signed-off-by: Michal Hocko Applied.