From: David Miller Subject: Re: [PATCH] [IrDA] Use alloc_skb() in IrDA TX path Date: Tue, 18 Jul 2006 15:38:31 -0700 (PDT) Message-ID: <20060718.153831.22498182.davem@davemloft.net> References: <20060719051331.GA3817@sortiz.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, hch-jcswGhMUV9g@public.gmane.org, irda-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Return-path: To: samuel-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org In-Reply-To: <20060719051331.GA3817-jcdQHdrhKHMdnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: irda-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: irda-users-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: netdev.vger.kernel.org From: Samuel Ortiz Date: Wed, 19 Jul 2006 08:13:31 +0300 > As pointed out by Christoph Hellwig, dev_alloc_skb() is not intended to be > used for allocating TX sk_buff. The IrDA stack was exclusively calling > dev_alloc_skb() on the TX path, and this patch fixes that. > > Signed-off-by: Samuel Ortiz Applied, thanks Samuel. As followups it would be nice to: 1) See if any of the GFP_ATOMIC's can be moved to GFP_KERNEL. I do understand that many of these call sites are running in software interrupt context or are holding spinlocks and thus must use GFP_ATOMIC. 2) Change these 64 and 128 constant sizes to something with a name. Thanks! ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV