Article View: linux.kernel.netdev
Article #5989Re: [PATCH net-next 0/2] net/sched: don't wait for RCU when destroying qdisc lockdep keys
From: Vlad Poenaru
Date: Wed, 21 Oct 2026 12:00
Date: Wed, 21 Oct 2026 12:00
29 lines
12211 bytes
12211 bytes
On Tue, Oct 20, 2026 at 10:15:47AM -0700, Boqun Feng wrote: > Sounds like a solid plan to me. You can make it behind > CONFIG_LOCKDEP_DEBUG. Done, under CONFIG_DEBUG_LOCKDEP, as a fallback. > But this means lockdep needs to do its own allocation for the hash > nodes? Where does the memory come from, a slab or something? If so, I > think we should probably avoid that. But I like this idea more since it > won't introduce another API. So please do explore this idea as well, > thank you! No slab. The nodes live in a static array with an in-use bitmap, like lockdep's classes, list entries and chains, sized by a new CONFIG_LOCKDEP_DYNAMIC_KEYS_BITS. Unregistering hands the node to the existing delayed_free machinery, so a slot is only reused after a grace period, and lockdep_unregister_key() no longer waits at all. is_dynamic_key() only compares key addresses stored in lockdep's own memory. I posted it as an RFC against tip/locking/core: https://lore.kernel.org/all/20261021115621.3194947-1-vlad.wing@gmail.com/ With that, this series is not needed. Given Jakub's note it is on hold anyway; I will only come back to it if the RFC approach does not work out. Thanks, Vlad
Technical Details
Message-ID:
<20261021120046.3279601-1-vlad.wing@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-349992-linux-kernel-netdev=dewy.ruReferences:
<atehw5Cn5Ev7Z68i@tardis.local>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-349992-linux-kernel-netdev=dewy.ru
From: vlad.wing@gmail.com (Vlad Poenaru)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 0/2] net/sched: don't wait for RCU when destroying qdisc lockdep keys
Date: Wed, 21 Oct 2026 05:00:46 -0700
Organization: Usenet Network
Message-ID: <20261021120046.3279601-1-vlad.wing@gmail.com>
References: <atehw5Cn5Ev7Z68i@tardis.local>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="4134747"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:nC5AGpQWVkV7YJ+n+g9pEoX2LsM= sha256:VzJyB9XftQc5KO9lC34k8NO4kgDqFwKeh+KQhWJVaLY=
sha1:1ndGL4cFEpqZJgUzLZ1e/YSrHaw= sha256:0Z8RLUgT3SNVQrpLpgPNFqjiB1hKmFEr8qHQFuawGJ8=
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 3CCC7110FCE; Wed, 21 Oct 2026 15:15:53 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, 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] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
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 ueltqSa3yA8r;
Wed, 21 Oct 2026 15:15:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-349992-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id C4FA6110FF4; Wed, 21 Oct 2026 15:15:41 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 27EDC8312F; Wed, 21 Oct 2026 12:01:00 +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=1792584058;
b=o5rVTdWLY3xZu6KusBD6YIRmWrJKyEx98xp5uxAtiHJN0dNwBSmFSBW1ZQkKn5CnloMK
e36D9ufIU2h7jnoG8EyNdvX9oC/XGUSPhrUCByYucwDqFRhPsHNwI/yuGFg1VUCvuHyeD
j0t8EjOs0Rly13E6l/9NZKWSrzRA/NzbRbNLXIFMKsB/3+mjMWqbHOE2SLiJPux7SBVY4
LnjF++SDJs1EnEKkS45nfKFjbQ3JdaPhIVs502jloKKJYXYG1ONhyKOIUOLrkkq9VQcs2
DdQdzDTVFsTxeN6uaB7qI9cqi06yai2NPtVUc/STIvjisHdoqZsGpNBl8IU9mR/HZDg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792584058;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Transfer-Encoding;
bh=sFIge3pvKg5tOjs6OafupZRnQ+taR/KXdTgP36TD1t4=;
b=VLxNy6x5VS68rCFYHqk3xh2500nbWGcbQ7z0cz6I5c6csjTbHhwvDicUTX4ktUXvGWTL
/iXZ0PGtrEa+Q8LQAkMc5RESb3qaSlUcF3KXB8sR5Gha7JuWB9DcGPS1/fyk2LGCnpUKS
M7QcPAHawdOPajwFoRYmq0AMim3CNG8C0oqn8hDZ1RlMPdUgjG02uP6GtoauvcQs1TWWN
n64NXLyG4YdgvK8+v+qlhvSFLzbDeUooBbRGmsZDqcqmMC9u/fXzeB5ENzzSsGoWkNkWO
rL9SRGQLjKbO6ZgFzA+fWy9IBVZiNY1IhvCIVmG4IbeCdemoJTrpoqpRILRO3030pIg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b="Ni2/mLP+";
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
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 194EA606A327;
Wed, 21 Oct 2026 12:00:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=Ni2/mLP+
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.52
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1792584057;
b=AuTSUbfZgUvSS5YxFZJBL/sYViXwYHbXN6I7wsnz/5l907VSislT58GCkVXjAWDUDoK5
EANSUlJo2HVZGhkp99WKf7pXWYWthxt+nwDO+yBFx/2NN6zBT9Dy7b0X/XnFaf//ZTFqm
th1wXQq8NyVfTfuE2VIt6W2L94i1I/+M58unIHuncKltdNIGP/GNfapgD4A19XOBfGPH/
7PfUvVlOnUYRoFFSabaJR8ngwcq2edajBzOZnruF4cmqICUTjUt45ScJe9GPqTj/3bXpH
FTyHK6HnNXyRDe09Iz3tTNI5Rndtb+MU6H0STWuFpyAWot0HwA4r4VSBpGk1T5ALuNQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1792584057;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
MIME-Version:Content-Transfer-Encoding;
bh=sFIge3pvKg5tOjs6OafupZRnQ+taR/KXdTgP36TD1t4=;
b=xslo85UyxHxipMfnVIQ84A/PpnZl/DhFr1bcFIEQB7qcKE5VYcBdHlD3jJe66holS2Ci
9QtZXQkXbEAK/cj02+/d2Q+uvKxMNsR5VpOKP8HA/JGWvBQVItniymk/74QMt8Z2R4wY6
dKGW4EfjzrGA8Rtktuv+LSvl8isHcuBayUXpC3tPfJLPJSjwwMTn4GxM5/TPnqPYpsJdK
2AELWRFgnBESyR+/J2dfzdmQoC0N3mZIQxIPi0w2Zi2TsqqdmlxY05c3ejl/61efVaGqU
3ZtqKKyAgay+2H9pUzLW1QaKECtAO6/dOLeuhiViw1LYsswulLBOys6D24o0gm+p8dA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=none smtp.remote-ip=209.85.208.52
X-Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F83F606A31A
for <netdev@vger.kernel.org>; Wed, 21 Oct 2026 12:00:51 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2F83F606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-6b1f31c63ebso2678588a12.0
for <netdev@vger.kernel.org>; Wed, 21 Oct 2026 05:00:51 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792584050; x=1793188850; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=sFIge3pvKg5tOjs6OafupZRnQ+taR/KXdTgP36TD1t4=;
b=Ni2/mLP+iAbSaf4FkE0ykYCMgbK4kPCN3VwLapCetbM0FY4KPtNdrXAv0QBhxAjyTv
eNe6hU27/TyIXRfsw/ss4WFt3dDVOjkRDCtSFdlN+R5afJ3dM3/4xB0X0j3HWgl20ycj
ItkCVQiA6v3VKJQicOuLEHARAzySVcUqkSwhpb1DarNH6IQvLr1VyfFmGvEAeHitjBlh
ML8V2LgdeGHe3ijOkOnj0F5q6KXwaNYlr6XYm/x9a5j1xZ7mclaNSGIdL8yucf8nZdzZ
mwCqbEwvHn8GtuEyksudk4epRCTZVPyofMmw5olW6dYr96qluPMntNljDL7v7bdT5rDb
kSDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792584050; x=1793188850;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=sFIge3pvKg5tOjs6OafupZRnQ+taR/KXdTgP36TD1t4=;
b=huGGhAMyHFBFkX+kPkOUOt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38zGtqI8oXu
WeyEZA/4bQhkyZuB0puZ2Z90KpJRrJ2nxhzYUdGQ1JOvnHdRg==
X-Received: by 2002:a17:907:9490:b0:c42:6632:a369 with SMTP id a640c23a62f3a-c46799b30a6mr165818266b.21.1792584049857;
Wed, 21 Oct 2026 05:00:49 -0700 (PDT)
X-Received: from localhost ([2a03:2880:32ff:48::])
by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c4678fda057sm68875966b.58.2026.10.21.05.00.49
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 21 Oct 2026 05:00:49 -0700 (PDT)
X-Cc: Bart Van Assche <bvanassche@acm.org>,
Eric Dumazet <edumazet@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Will Deacon <will@kernel.org>,
Waiman Long <longman@redhat.com>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>,
"David S. Miller" <davem@davemloft.net>,
Simon Horman <horms@kernel.org>,
Jamal Hadi Salim <jhs@mojatatu.com>,
Jiri Pirko <jiri@resnulli.us>,
Davide Caratti <dcaratti@redhat.com>,
Breno Leitao <leitao@debian.org>,
Nilay Shroff <nilay@linux.ibm.com>,
linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.53.0
X-In-Reply-To: <atehw5Cn5Ev7Z68i@tardis.local>
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