Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753596Ab0LIHk5 (ORCPT ); Thu, 9 Dec 2010 02:40:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53204 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895Ab0LIHk4 (ORCPT ); Thu, 9 Dec 2010 02:40:56 -0500 Message-ID: <4D0087EE.90307@redhat.com> Date: Thu, 09 Dec 2010 15:40:30 +0800 From: Cong Wang User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Shredder/3.0.4 MIME-Version: 1.0 To: Neil Horman CC: linux-kernel@vger.kernel.org, Jiri Pirko , netdev@vger.kernel.org, "David S. Miller" , "Eric W. Biederman" , Herbert Xu , bonding-devel@lists.sourceforge.net, Jay Vosburgh , Stephen Hemminger Subject: Re: [v3 PATCH 1/2] bonding: sync netpoll code with bridge References: <20101208075208.5792.45247.sendpatchset@localhost.localdomain> <20101208135746.GD11454@hmsreliant.think-freely.org> <4D008643.5040500@redhat.com> In-Reply-To: <4D008643.5040500@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 962 Lines: 24 On 12/09/10 15:33, Cong Wang wrote: >>> >>> /* close slave before restoring its mac address */ >>> dev_close(slave_dev); >>> @@ -2061,6 +2098,7 @@ static int bond_release_and_destroy(struct >>> net_device *bond_dev, >>> >>> ret = bond_release(bond_dev, slave_dev); >>> if ((ret == 0)&& (bond->slave_cnt == 0)) { >>> + bond_dev->priv_flags |= IFF_DISABLE_NETPOLL; >> Why are you setting IFF_DISABLE_NETPOLL here? That seems unnecessecary >> > > It gets removed in patch 2/2. :) Oops! I misread IFF_DISABLE_NETPOLL as IFF_IN_NETPOLL... I think there is a small window between bond_release() and unregister_netdevice(), setting this could prevent netpoll is setup again on this bond? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/