From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9CBC13C25 for ; Tue, 13 Jun 2023 11:28:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B077C433EF; Tue, 13 Jun 2023 11:28:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686655726; bh=hq8QxgtfWCwqWViXgoyl/4QAqSHZJrese1MOftstq84=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pFgy3h0Vd4fsxoGvUIYQYGt9FMbA5KFK/9zVYhpykuWuXUFKHRV75RTyp8v0Dj4XG JR9Dsdpr16RwfSqU9RoC2HhIstFPqw1dCpSWKU7wW3lm3coj1+nMwAmvpG7O0ukRDX dbummXzHtoR5dmixkUE2QNmfFAuzUTm8hXkkUDCLaHu2/ysR56RUYSr/QB4XryLBRp VAkMgONgDqBUgi/+LcYkMRPssPLpp1yvVZ45TW8vM1zJiW+7XbP3eL2EUz70AFsLgR Qq/RiIxFvtwypMx5JyWE8nuOmyLHX627x0UlT7O2v7HXmjntimvtwI2l/ruG0o4LsK 8+OGnzYyQG79w== Date: Tue, 13 Jun 2023 14:28:41 +0300 From: Leon Romanovsky To: Vladimir Oltean Cc: Maciej Fijalkowski , Asmaa Mnebhi , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, cai.huoqing@linux.dev, brgl@bgdev.pl, chenhao288@hisilicon.com, huangguangbin2@huawei.com, David Thompson Subject: Re: [PATCH net v2 1/1] mlxbf_gige: Fix kernel panic at shutdown Message-ID: <20230613112841.GZ12152@unreal> References: <20230612131707.GS12152@unreal> <20230612132841.xcrlmfhzhu5qazgk@skbuf> <20230612133853.GT12152@unreal> <20230612140521.tzhgliaok5u3q67o@skbuf> <20230613071959.GU12152@unreal> <20230613083002.pjzsno2tzbewej7o@skbuf> <20230613090920.GW12152@unreal> <20230613093501.46x4rvyhhyx5wo3b@skbuf> <20230613101038.GY12152@unreal> <20230613103422.ppjeigcugva4gnks@skbuf> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230613103422.ppjeigcugva4gnks@skbuf> On Tue, Jun 13, 2023 at 01:34:22PM +0300, Vladimir Oltean wrote: > On Tue, Jun 13, 2023 at 01:10:38PM +0300, Leon Romanovsky wrote: > > On Tue, Jun 13, 2023 at 12:35:01PM +0300, Vladimir Oltean wrote: > > > Not really sure where you're aiming with your replies at this stage. > > > > My goal is to explain that "bus drivers may implement .shutdown() > > the same way as .remove()" is wrong implementation and expectation > > that all drivers will add "if (!priv) return ..." now is not viable. > > I never said that all drivers should guard against that - just that it's > possible and that there is no mechanism to reject such a thing - which > is something you've incorrectly claimed. I was wrong in details, but in general I was correct by saying that call to .shutdown() and .remove() callbacks are impossible to be performed at the same time. https://lore.kernel.org/all/20230612115925.GR12152@unreal Thanks