From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH next-next 0/10] Using dev_kfree_skb_any for functions called in multiple contexts Date: Tue, 11 Mar 2014 19:54:05 -0700 Message-ID: <1394592845.21721.38.camel@edumazet-glaptop2.roam.corp.google.com> References: <87a9cxf7mp.fsf_-_@xmission.com> <20140311.124907.1180556684992271103.davem@davemloft.net> <87wqg0cy9d.fsf@xmission.com> <20140311.160931.1395978386605601765.davem@davemloft.net> <87r468bfqj.fsf_-_@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: David Miller , netdev@vger.kernel.org, xiyou.wangcong@gmail.com, mpm@selenic.com, satyam.sharma@gmail.com To: "Eric W. Biederman" Return-path: Received: from mail-pb0-f45.google.com ([209.85.160.45]:47551 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbaCLCyI (ORCPT ); Tue, 11 Mar 2014 22:54:08 -0400 Received: by mail-pb0-f45.google.com with SMTP id uo5so437409pbc.18 for ; Tue, 11 Mar 2014 19:54:08 -0700 (PDT) In-Reply-To: <87r468bfqj.fsf_-_@xmission.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, 2014-03-11 at 14:13 -0700, Eric W. Biederman wrote: > This patchset should be an uncontroversial set of changes to change > dev_kfree_skb to dev_kfree_skb_any for code paths that are called in > hard irq contexts in addition to other contexts. netpoll is the reason > this code gets called in multiple contexts. > > There is more coming but these changes are a good starting place, and > stand on their own. > > Since the last round changes to the rx path have been removed netpoll > will changed to avoid that. > > Eric W. Biederman (10): > 8139cp: Call dev_kfree_skby_any instead of kfree_skb. > 8139too: Call dev_kfree_skby_any instead of dev_kfree_skb. > r8169: Call dev_kfree_skby_any instead of dev_kfree_skb. > bonding: Call dev_kfree_skby_any instead of kfree_skb. > bnx2: Call dev_kfree_skby_any instead of dev_kfree_skb. > tg3: Call dev_kfree_skby_any instead of dev_kfree_skb. > ixgb: Call dev_kfree_skby_any instead of dev_kfree_skb. > mlx4: Call dev_kfree_skby_any instead of dev_kfree_skb. > benet: Call dev_kfree_skby_any instead of kfree_skb. > gianfar: Carefully free skbs in functions called by netpoll. Acked-by: Eric Dumazet We'll have some follow up, but these patches seem fine.