From: Francois Romieu Subject: Re: [Patch net] atm: remove an unnecessary loop Date: Sat, 14 Jan 2017 01:15:20 +0100 Message-ID: <20170114001519.GB6874@electric-eye.fr.zoreil.com> References: <20170113132346.GA19220@electric-eye.fr.zoreil.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux Kernel Network Developers , Michal Hocko , Chas Williams <3chas3@gmail.com>, Andrey Konovalov To: Cong Wang Return-path: Received: from violet.fr.zoreil.com ([92.243.8.30]:42565 "EHLO violet.fr.zoreil.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbdANAPY (ORCPT ); Fri, 13 Jan 2017 19:15:24 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: Cong Wang : > On Fri, Jan 13, 2017 at 5:23 AM, Francois Romieu wrote: [...] > > alloc_skb() does not need to be in the "while" loop. > > This is exactly what I describe in my changelog, don't know > why you want to repeat it... Because it is still hidden in a while loop. You turned the alloc from a two level deep "while" loop to a one level one. I want it at zero level. alloc_skb(..., GFP_KERNEL) fails ? So let it be done (see patch in other message). [...] > Please don't expect me to fix many things in one patch, let's > fix each of them separately, agreed? I am not convinced that several patches are needed to get the whole picture right. -- Ueimor