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 B733123918D; Fri, 6 Dec 2024 01:59:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733450358; cv=none; b=cd9XZ/sS8LIUbQn47TwZRwyQtDKOVrgD3UjzvR3YgBBC6aMexFAv1IaqhiISF58uD6izuIfLHr68Q3K0b4y+pWIWyrevz4kf4r8dDMGi8QAwXR2H7MVVLHGRcaNIAVBtLLX7w3mJSoi+Y1eVlEt6nizJW1EgAVt1B6K8QgeMtGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733450358; c=relaxed/simple; bh=OovP5Usy95Qw7SUPBcl/ecURq4J1gZ9MevjcjE34vpg=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=e0jbezStSuSWT44wnqQNzsxy2txF5JKVvRaI2A7wes/pIo+fKa5ZrEzmosmfVwKMEZZzsMLZumIKDYivWbwfoQDZrPdKjleDZKg23VzeF4d0AdALpLNnBOorT9Kg3BwhdDVhGHjZRCw+ixQ5bq5pBrzILhQSe/+R0iuWwdEEfPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UedKjdLC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UedKjdLC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4745BC4CED6; Fri, 6 Dec 2024 01:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733450358; bh=OovP5Usy95Qw7SUPBcl/ecURq4J1gZ9MevjcjE34vpg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UedKjdLCQo7HLfBY6QGsBTLYFx5A6EafAwHoJBxqmkwLUDyvp2N550LAGEoT/XFef QLSDgBFglH6jGLFQ+KVShwy1VHrSEJ0ztPVLmlPLJR67g63ddifngPJY15Cw5c6CUc JmaXz46325gXhiN5IkzUFWqkALyv8iGqds8oqzkcfM7HrlB/3/gMIOI4+J7PliMnB/ 5A5OyxCxiehB/MmduKHgz/ScnW2SRWiZLCArOuRPs9a5ViwjiaOOGSYuDyxJpd8ZrG 61uGkYXqy9Q3VzzhzDEPXxErxJcMW+0gcNgWLcYy9Ym82syjU3e3wUfzawbApQ3zz8 A7MZweELaDDPw== Date: Thu, 5 Dec 2024 17:59:16 -0800 From: Jakub Kicinski To: Jijie Shao Cc: , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH V4 RESEND net-next 6/7] net: hibmcge: Add reset supported in this module Message-ID: <20241205175916.07d50c71@kernel.org> In-Reply-To: <20241203150131.3139399-7-shaojijie@huawei.com> References: <20241203150131.3139399-1-shaojijie@huawei.com> <20241203150131.3139399-7-shaojijie@huawei.com> 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-Transfer-Encoding: 7bit On Tue, 3 Dec 2024 23:01:30 +0800 Jijie Shao wrote: > But the ethtool command already holds the rtnl lock in the dev_ethtool(). > So, the reset operation is not directly performed in > ethtool_ops.reset() function. Instead, the reset operation > is triggered by a scheduled task. You can trivially factor out taking and releasing of the lock so that ethtool path can execute just the logic inside, no?