Article View: linux.kernel.netdev
Article #526Re: [GIT PULL] wireless-next-2026-10-07
From: Johannes Berg
Date: Thu, 08 Oct 2026 07:44
Date: Thu, 08 Oct 2026 07:44
86 lines
9245 bytes
9245 bytes
Hi Kuniyuki, On Wed, 2026-10-07 at 19:05 -0700, Kuniyuki Iwashima wrote: > On Wed, Oct 7, 2026 at 4:36 PM Jakub Kicinski <kuba@kernel.org> wrote: > > > > On Wed, 7 Oct 2026 22:57:00 +0200 Johannes Berg wrote: > > > Nothing much going on in wireless-next. However, next time > > > I hope to land my RTNL-redux series which will (almost) > > > completely wean the wireless stack off the RTNL, except in > > > places where we need it for netdev register/unregister/etc. > > That's great ! > > We saw a wifi driver holding RTNL long on Android. Well, _that_ mostly shouldn't have happened for a long time (since 5.12), though I actually learned yesterday that some android drivers went to implement things with private ioctls because they (thought they) needed the RTNL ... so, Android, take with a bag of salt. > Also, I hope we could remove the long comment in __rtnl_unlock(). Couldn't we remove that today, by just __rtnl_unlock() in that place in cfg80211? But it's not exported, for good reason, presumably. But that's also irrelevant, because indeed after my patchset cfg80211 doesn't do that any more: https://lore.kernel.org/linux-wireless/20261006100655.2687533-21-johannes@sipsolutions.net/ > > > I need to see what's going on with the per-netns mutex now, > > > can we already use that instead? > > Do you mean moving net->rtnl_mutex out of Kconfig ? I have no idea what I'm talking about ;-) > Recently, I've been converting the first-class rtnetlink handlers > with dedicated locks, but others not worth the effort will simply > replace rtnl_lock() with rtnl_net_lock(). > > rtnl_net_lock() still acquires rtnl_lock(), but if we always compile > net->rtnl_mutex, using __rtnl_net_lock() for the latter should be > okay. OK so I (likely naively) thought the idea was that most things like netdev registration/unregistration eventually move to rtnl_net_lock()? Here are the places that still take RTNL in wifi after the patchset above: - suspend/resume (not entirely sure - it goes to hw restart maybe) - hw restart (can unregister netdevs on failures) - rate control init in mac80211 (but that can be removed easily) - netdev registration - netdev unregistration - rfkill, to call dev_close() - wiphy registration/unregistration (might be possible to disentangle now) - network namespace destruction/exit - wiphy naming, but that can move to cfg80211_mtx now - some netlink dumps (related to the naming?) - testmode/vendor ... I guess we can't get rid of that, but no upstream drivers should have much here - interface/wdev start/stop - netns moves (and a couple of places I should just fix). So mostly that's relatively short-lived (like the wiphy naming stuff) or related to network/netns maintenance where I'm not sure. Thanks! johannes > > > > > > That's a Kuniyuki question (cced). I've been trying to move > > HW drivers out of rtnl_lock and under netdev->lock. > > Most of the rtnl_lock contention I've seen in prod at Meta > > is in init_net > > FWIW, I've still seen contention while creating/removing containers.
Technical Details
Message-ID:
<2688563455012eb80063ae014f78230b10a14710.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-342783-linux-kernel-netdev=dewy.ruReferences:
<20261007205827.467974-3-johannes@sipsolutions.net> <20261007163616.1088d364@kernel.org> <CAAVpQUATko2Oig53r1+VHe+4Y3fFeX1xOw5RAnXtUAGwvQoB5A@mail.gmail.com> (sfid-20261008_040528_485050_028310B5)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-342783-linux-kernel-netdev=dewy.ru From: johannes@sipsolutions.net (Johannes Berg) Newsgroups: linux.kernel.netdev Subject: Re: [GIT PULL] wireless-next-2026-10-07 Date: Thu, 08 Oct 2026 09:44:49 +0200 Organization: Usenet Network Message-ID: <2688563455012eb80063ae014f78230b10a14710.camel@sipsolutions.net> References: <20261007205827.467974-3-johannes@sipsolutions.net> <20261007163616.1088d364@kernel.org> <CAAVpQUATko2Oig53r1+VHe+4Y3fFeX1xOw5RAnXtUAGwvQoB5A@mail.gmail.com> (sfid-20261008_040528_485050_028310B5) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="829612"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:KByT+ONWX2g1bY4YH/z+hlGYBNQ= sha256:9YUFYnbMdIUZGkkfpggCRwgGF7LNWb1LV9dPLD/6JDU= sha1:qC96ibjnR7y8k2E4/hgRmkjku4A= sha256:fjKSJotQs6jLAvGnOSEAE88wEqL0adJvedRJuYROR/Q= 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 D3B9110F330; Thu, 8 Oct 2026 10:54:32 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.751 X-Spam-Status: No, score=-0.751 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.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-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 vCi0hWU1-xUo; Thu, 8 Oct 2026 10:54:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342783-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=permerror header.from=sipsolutions.net X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 1D57C10F260; Thu, 8 Oct 2026 10:54:22 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 7BABC35289; Thu, 8 Oct 2026 07:45:41 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE71C42CB1C; Thu, 8 Oct 2026 07:44:57 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="fTtjHnj7" X-Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 C8A18423A66; Thu, 8 Oct 2026 07:44:53 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791445497; cv=none; b=C9C0Wm8kM5FSa5bvMyqk4FmPavq1wHnu2f4ZQJ0HcbQR92d0SvjtJ3NXR7tNg5cnZPqySvdBSgvpg76Gjv9rZsnuyjPKYwtZVDyn+VLKeeYuwxSP2i+XPyiARrQnoVrYnu/dzCubNM8pHe7A9Aa5s63Jux9ZcM3HbjRyDN87EHw= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791445497; c=relaxed/simple; bh=SX8aHBZ+Jvm6rjNABPl//Et/ydQ+AprwhtNg3ayxDFM=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=tDBkODA0fCy6FxLf5uZwAJbyPYa4tTdtKbCe2Ti2Os5byHH860BnlUeXAnL5vyc4PpwNO61sdjNi8vP/Aw0L21fcC0MBCGm8xNTOS0s6lchub/iMhleWUkfIiENxd8PfHhdeDCp5Tz2MPxCVQLI7er5kuHA85qlgl+EfAG0WS2U= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=permerror header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=fTtjHnj7; arc=none smtp.client-ip=168.119.38.16 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=RAFFMHXt9hKqc6DeNIeiFUmCqfwK92D95q9EzUKD8ns=; t=1791445493; x=1792655093; b=fTtjHnj7tRQ1b//azj+cLa6f6XdxR3GAw/FmIcOSuy+GQc7 sMthauipDJswEjzTLacGpw7bUzd+3wdbJMTx9RAsBQKh1rRWmMDXh2Cpv6fwzWjtQfoi03H5JQg5a HWJmWYOwRNN++coZeAdFzHQ+Pbajk8GD9uCYACFgDZiazi0VKz9Mpfv2lr8lAkQvt5inJlHv4ZL71 jPB03jllmlP5VMXiNpVB0OBbHTFB2igCDt6CuXQKNCBWnTaJt2w62lG3rixa0ikPNjWwAK7bVy992 39UuvnPxYLoTvV8011VEO1h3K15nrhZ1sMwgd/XO7fVC7QtCe+Rch47nO3kJ4BSA==; 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 1xEio6-000000099KQ-11jF; Thu, 08 Oct 2026 09:44:50 +0200 X-Cc: netdev@vger.kernel.org, linux-wireless@vger.kernel.org X-In-Reply-To: <CAAVpQUATko2Oig53r1+VHe+4Y3fFeX1xOw5RAnXtUAGwvQoB5A@mail.gmail.com> (sfid-20261008_040528_485050_028310B5) X-User-Agent: Evolution 3.60.2 (3.60.2-2.fc44) X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-malware-bazaar: not-scanned