From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH 2.6.35-rc1] net-next: vmxnet3 fixes [4/5] Do not reset when the device is not opened Date: Mon, 19 Jul 2010 13:16:10 -0700 (PDT) Message-ID: <20100719.131610.170125363.davem@davemloft.net> References: <20100717.163538.137865264.davem@davemloft.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pv-drivers@vmware.com, ronghua@vmware.com, matthieu@vmware.com To: sbhatewara@vmware.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:39919 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966644Ab0GSUPy (ORCPT ); Mon, 19 Jul 2010 16:15:54 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Shreyas Bhatewara Date: Mon, 19 Jul 2010 10:02:13 -0700 (PDT) > Hold rtnl_lock to get the right link state. > > While asynchronously resetting the device, hold rtnl_lock to get the > right value from netif_running. If a reset is scheduled, and the device > goes thru close and open, it may happen that reset and open may run in > parallel. Holding rtnl_lock will avoid this. > > Signed-off-by: Shreyas Bhatewara Applied.