🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #6051

Re: [PATCH] wifi: wext: Limit notifier event flushes to the device's netns

#6051
From: Johannes Berg
Date: Wed, 21 Oct 2026 15:21
18 lines
9111 bytes
On Wed, 2026-10-21 at 17:41 +0300, Cosmin Ratiu wrote:
> With mlx5 netdev instance locking enabled, registering an IPoIB netdev
> calls the WEXT notifier while holding the instance mutex.

I hate wext :)

> It may seem strange that the fix for a lock cycle across multiple
> subsystems lies in a completely unrelated part of the code, but this
> seemed the most justified lock cycle edge to break.

Yeah, seems fair. Finally a good reason for my ~17 year old commit to
have the wext events per netns? Today I'd probably have rejected it as
useless churn ;-)

LGTM.

johannes
Technical Details
Message-ID: <8a508046f36d8f483137ab6715722318af2b147d.camel@sipsolutions.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350076-linux-kernel-netdev=dewy.ru
References: <20261021144111.611840-1-cratiu@nvidia.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-350076-linux-kernel-netdev=dewy.ru
From: johannes@sipsolutions.net (Johannes Berg)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] wifi: wext: Limit notifier event flushes to the
 device's netns
Date: Wed, 21 Oct 2026 17:21:46 +0200
Organization: Usenet Network
Message-ID: <8a508046f36d8f483137ab6715722318af2b147d.camel@sipsolutions.net>
References: <20261021144111.611840-1-cratiu@nvidia.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="4183134"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:kSTb9ePruVUz3I0kUYMnRqn6IvI= sha256:HFFMYwe4rhKhAxWhlqOh2Nlsufsc9GQfU36zcQVN3cM=
	sha1:bkbgwB+m6la0RAWtoE5NH+V7vNQ= sha256:7hiwhMkzSpBQrbH8X2T32l/puzDjbuJ/DFl32LmUPYM=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B9E73111054; Wed, 21 Oct 2026 18:35:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=sipsolutions.net
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id UdL1K9n1eio6;
	Wed, 21 Oct 2026 18:35:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-350076-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=permerror header.from=sipsolutions.net
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 9CED911102D; Wed, 21 Oct 2026 18:35:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id EE7553582C; Wed, 21 Oct 2026 15:22:03 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1792596115;
	b=OUte6Cpcsz7k5MBE1/Bm/TNEsoDqgr7TTSoBTdgSTsNHimLeWzViNJyFraf3r3GC3XQE
	 vx1HzaiUg9J0enEevWcX2Je0SoM1vwC/+Qtt4M8fj0swgn5f1NwObh/8hsVBcHJwUJLkQ
	 2sL4O/vtBhoI7ib8zXCzHHcqRrWjN79wz96iIo6gt+N64KjvZZGE3vjlpclL13yDVcNg0
	 4yRt6vBI+c0x+tAXyNFC3VJIe5KT1hPqhneWeALOWfpEin2o0kadltYg6uwdLrh4cyJWY
	 sK6kP8K0taXGxvcQvDjYi0YykHD7C1ImKCl4cMyO/Vw8oHijmbwiy2mTB/znrM6oM0Q==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792596115;
	h=X-Original-To:Received:DKIM-Signature:Received:Message-ID:Subject:
	 From:To:Cc:Date:In-Reply-To:References:Content-Type:
	 Content-Transfer-Encoding:User-Agent:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:X-malware-bazaar;
	bh=SnjS024GuYaQHHoMEGecQOUYWneE4opnzyTSvqqt2JY=;
	b=hsW5E2mXzqkc3WX4lGDyRyF66zfqYCS8RstsyBilg/50NKhlpKVy+nImf3/Oxhy6ROOb
	 nRPCByP6RJyvTK20kMeKoutHDVXqdUf0Q+YnBVv5F3kIl/WMFi2Y6DhtIQDfGd+iz/QfD
	 5U2Nmxi0F6V21llFY/1wUVwcrhXeO7l9G7IOFqD0gwmiLSeL8C6N0yEzEuvA5uWSRaMWx
	 4TQH30ngvKdZMRMfRwOSPcbLdAWE7SKgvHUPx1kWjgEtiYtTv2QsmF1BVsWvD8u1FUDph
	 mITOYKxf+I4z9ucrEDJKWxEjokEeSEdiXD7mStq/psqPFk+kTmKNdKXYfbq5HxuDNmw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=g35ejlfi;
	dmarc=permerror header.from=sipsolutions.net;
	spf=pass smtp.mailfrom=sipsolutions.net;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 0552A606A331;
	Wed, 21 Oct 2026 15:21:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=g35ejlfi
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=168.119.38.16
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1792596113;
	b=p4rH1EdctNO35QNSKKxQuXsn21NQw9DpIEWUY3XbzajiB9JA/2bsVrpP+CuELlt678ql
	 ZsqZWJCm9zdIYUqDrCv27IIBW7aEF9XjjmHr9SBsx7sHb+8f0wcpvKUPA2jycDRCOVSrE
	 DOaOflVnAdWvqNSouuPBvMI9SdUXTrSziCPSkr4Ektd1tTUN3YrTaPJaVPlvbbQtJYXD/
	 XWBAiZmjJOF7yJq0kWpyDPMfi/bsBPlHI+V2A7RdWrG/29iSvWcakncLuip2XMKJbXMCQ
	 2HDTJyewb4yYnJ0DHMdH7L0fqOqd0mO+ca7iZLHxH3Bx6f25YbbSIn7n/fn236ik+Dw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1792596113;
	h=DKIM-Signature:Received:Message-ID:Subject:From:To:Cc:Date:
	 In-Reply-To:References:Content-Type:Content-Transfer-Encoding:
	 User-Agent:MIME-Version:X-malware-bazaar;
	bh=SnjS024GuYaQHHoMEGecQOUYWneE4opnzyTSvqqt2JY=;
	b=0ednTgdvXesx2MqvzSe+Ciba6QNjonW6KtW73xuMYZWr6BwqcpQjOXOMSYVr94fcxCaZ
	 kkPXfN5TCw7Q07mXzw7WqMSeIF/u1UglFYxfk9D+Cb6Pb6piQ6j58jXCy2dabIz7Uh2kp
	 r9DSlay5srydjE1Z93yaiPckm3tYjBcpUksYsmYuVlA1wETyda6z+PoedItGwlvuGMVcG
	 Fi2KKq/+Q95p5ET8F46iOqkV86yr705/rkS7EGTVwPuxQPX1XNrU/3ddNfuzZlaKTzT6X
	 U7RzS/o0l01a31abahSVNz355BA3q9wrvK4/n22A4jLhn5iv4WkOM9ZS0X9HYl3Cvuw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=permerror header.from=sipsolutions.net;
	spf=pass smtp.mailfrom=sipsolutions.net;
	dkim=pass header.d=sipsolutions.net header.i=@sipsolutions.net header.a=rsa-sha256 header.s=mail header.b=g35ejlfi;
	arc=none smtp.remote-ip=168.119.38.16
X-Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2285B606A325;
	Wed, 21 Oct 2026 15:21:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=permerror header.from=sipsolutions.net
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding:
	Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender
	:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To:
	Resent-Cc:Resent-Message-ID; bh=SnjS024GuYaQHHoMEGecQOUYWneE4opnzyTSvqqt2JY=;
	t=1792596111; x=1793805711; b=g35ejlfivg1u1g5+t4T0oh+CKU9+luF4YB0E1gGljNXaqZR
	vt3NMyvo/YcujwvWRfEY7cj4KA4y/ReMsjhzO1BOBj3xLhr/r3RvcTI7IX8AeD6odAekClnw6PcvW
	qrPOOEmE/H6lUGdFUUE5V3eauGFYHQnXSANZ+wpWoPVa5Hummo15runJftHBVZdlmp6UHy02Dip37
	O6AXpqfxszaUr8lvejPPXq1XijjSoCe2oMc/N0RybNrqxDC2uZNr5H/UpCz6HWadY0TUJk+PX381k
	KGujgh6OC0DYpisfSCdmWyLffjcuSDJD2aCvC2DTTbiXYwzjFlAJI77FZz1Z6vIQ==;
X-Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__ECDSA_SECP256R1_SHA256__AES_256_GCM:256)
	(Exim 4.98.2)
	(envelope-from <johannes@sipsolutions.net>)
	id 1xJY8S-00000002TPF-2fwv;
	Wed, 21 Oct 2026 17:21:48 +0200
X-Cc: Tariq Toukan <tariqt@nvidia.com>, Carolina Jubran <cjubran@nvidia.com>, 
 Dragos Tatulea <dtatulea@nvidia.com>, Jakub Kicinski <kuba@kernel.org>,
 netdev@vger.kernel.org
X-In-Reply-To: <20261021144111.611840-1-cratiu@nvidia.com>
X-User-Agent: Evolution 3.60.2 (3.60.2-3.fc44) 
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-malware-bazaar: not-scanned