Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753978AbcCYTQj (ORCPT ); Fri, 25 Mar 2016 15:16:39 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:44928 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752190AbcCYTQj (ORCPT ); Fri, 25 Mar 2016 15:16:39 -0400 Date: Fri, 25 Mar 2016 15:16:36 -0400 (EDT) Message-Id: <20160325.151636.590435237623997861.davem@davemloft.net> To: helgaas@kernel.org Cc: nhorman@redhat.com, bhelgaas@google.com, nikolay@cumulusnetworks.com, netdev@vger.kernel.org, aduyck@mirantis.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] netpoll: Fix extra refcount release in netpoll_cleanup() From: David Miller In-Reply-To: <20160325164639.GA29822@localhost> References: <20160325025621.32476.93348.stgit@bhelgaas-glaptop2.roam.corp.google.com> <20160325113342.GA21579@hmsreliant.think-freely.org> <20160325164639.GA29822@localhost> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 25 Mar 2016 12:16:38 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 811 Lines: 21 From: Bjorn Helgaas Date: Fri, 25 Mar 2016 11:46:39 -0500 > You're right, there is an issue here. I reproduced a problem with a > bond device. bond_netpoll_setup() calls __netpoll_setup() directly > (not netpoll_setup()). I'll debug it more; just wanted to let you > know there *is* a problem with this patch. I bet that's why the assignment to np->dev and the reference counting were separated in the first place :-/ Indeed, commit 30fdd8a082a00126a6feec994e43e8dc12f5bccb: commit 30fdd8a082a00126a6feec994e43e8dc12f5bccb Author: Jiri Pirko Date: Tue Jul 17 05:22:35 2012 +0000 netpoll: move np->dev and np->dev_name init into __netpoll_setup() Signed-off-by: Jiri Pirko Signed-off-by: David S. Miller