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 ADBBE3085B3 for ; Wed, 18 Jun 2025 18:47:36 +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=1750272456; cv=none; b=DJ1GxCKklRUCXcYXTERzLU/mcM8Qx2HzFX+IGUm79J8/PPCvyiPibJrOPdoy0gI34uBxuF7ERNHMeDK4F8JsUoMNImWD52BTZo+v2r7CNS5TMDx6AIICp8lvG+J5SQNhyrHwqVW6NyE02NMCUAL+cO0mwYuA12QvBGlR2ld7o8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750272456; c=relaxed/simple; bh=FyR+UvfwxWEdNAnzplUkLL3k4NbHwnAdaKieqxpQciM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oGVQt3/BIicj1ODPwUMzJnlJlwFipnmzdNpHstKju5Lf21qTtkF3U3YIQdLMpP+utrv9rARoOxxvJ7UxLYg+2hbRIfUYjxKyY2S/2T3OTGbX9L3cwx4IpUea+RRlzcQbL5S0qD7uoEmu+jpt0+eUgD/+t2trEmuK7KUgy/iiLxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WTc0h3rA; 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="WTc0h3rA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0988CC4CEE7; Wed, 18 Jun 2025 18:47:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1750272456; bh=FyR+UvfwxWEdNAnzplUkLL3k4NbHwnAdaKieqxpQciM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WTc0h3rAr+3TfjIFOZN/QUl7rQ6l12DKhuiv2vV2HJzQesP80cDBJy11CQ2ityO3v 6hL8wfICluxMLC6ze9n5xzgVaTxlPdPdyi0p6wyqXxwV37VpPgLJEsk/8vvWZaqg8p f4Gv2VkXxRGZbHrHLXydmgyCrQVHedLeb05oCctnmEcBhJP3i4YwWpEHaurtcESRev 6OqDBUD6Lqc2lRv3wURGu9n38fxI19fIay5deazx0ObxWF2RYA8FN9bv9JQ1XEVspZ 9EnWQgUY1J0LRFG1xYWfzu/pNsghHOLIH3XKNIjaYC7R3PEpAQVXbLroyuhcEQ2xzj VfDNbyzVC5r1g== Date: Wed, 18 Jun 2025 11:47:35 -0700 From: Jakub Kicinski To: Sharath Chandra Vurukala Cc: , , Subject: Re: Issue with rtnl_lock in wg_pm_notification Message-ID: <20250618114735.5472f2cd@kernel.org> In-Reply-To: <2c5257a7-e330-4983-8447-3e217b616b2e@quicinc.com> References: <2c5257a7-e330-4983-8447-3e217b616b2e@quicinc.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, 17 Jun 2025 01:44:56 +0530 Sharath Chandra Vurukala wrote: > I do not understand fully what wireguard functionality is, but > considering that rtnl_lock is a global one, it does not seem to be a > good design to have notification callback acquire this lock. I'm not very familiar with the PM locks, but isn't the PM notification lock also a global one? Again, not an expert but having PM lock outside the rtnl_lock would be more intuitive to me.