🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #7660

Re: [PATCH net] net/sched: gred: keep the qdisc lock while updating the table

#7660
From: patchwork-bot+netdevbpf
Date: Mon, 26 Oct 2026 23:10
26 lines
8606 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 21 Oct 2026 23:54:33 +0800 you wrote:
> gred_change_table_def() publishes table->DPs/def/red_flags under
> sch_tree_lock(), drops the lock, and then keeps writing state the
> datapath reads without it:
> 
>   - gred_enable_rio_mode()/gred_disable_rio_mode()/gred_disable_wred_mode()
>     set/clear table->flags;
>   - the red_flags_changed loop writes table->tab[i]->red_flags;
>   - the shadowed-VQ loop frees table->tab[i] and clears the slot.
> 
> [...]

Here is the summary with links:
  - [net] net/sched: gred: keep the qdisc lock while updating the table
    https://git.kernel.org/netdev/net/c/306f788134a2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179305620432.3447040.15713481915535528978.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352110-linux-kernel-netdev=dewy.ru
References: <20261021155434.66572-1-phx0fer@gmail.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-352110-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/sched: gred: keep the qdisc lock while updating
 the
 table
Date: Mon, 26 Oct 2026 23:10:04 +0000
Organization: Usenet Network
Message-ID: <179305620432.3447040.15713481915535528978.git-patchwork-notify@kernel.org>
References: <20261021155434.66572-1-phx0fer@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1419319"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:bqZQ63fR1nR18f97dEYvv+C+O50= sha256:Lv3YtGD3ivJFCoApDO5/b7pp5ZQLt15Is8CkIk7htxk=
	sha1:awebYIWERcHayMq9bu+a0NrDBA0= sha256:7cWH8SwkpKaNqyD22NDL3f2LZMwIUrW+BdvpfQtsqTQ=
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 C5CA7125BD5; Tue, 27 Oct 2026 02:12:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.739
X-Spam-Status: No, score=-3.739 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.339, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	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=kernel.org
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 taSLl_9EF5GC;
	Tue, 27 Oct 2026 02:12:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352110-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 9A853125BD4; Tue, 27 Oct 2026 02:12:14 +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 31C292AF20; Mon, 26 Oct 2026 23:10:07 +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=1793056207;
	b=y4LicSB+Pm61+X1cj4ZiQB2g2oyTcMc6dh734+Cpv6g0vY1KPnJefGuVcAarfRcEPz0h
	 PpT8A2NN1Zm/p2lnfB9vEtKRhrXxf6PvQ/O7UAj2GGvAcV0OBwp99NJn7csqPnAFID6zS
	 sEAAZeTvf98LMOwVd7y1p4DjMcTK1JvkAC4MbFPbpmqF7iIlXoLlbhQJaLTLdtBJZNHZ/
	 8WBnUv3tA1OkeYvLT1kSnuTAoOMU3/jrL27efEDaThcTj86FFY7qCcTh0I7cgCYHO6at3
	 J2ORjPsVvyTfTW8oSojrThiLHQ8jN1UfOi2wJNQwpsc7qWoG+7pyHm6Jy+uOYcighwQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793056207;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=8BIpdA/wDgue8dy77oW+PBKLiAzenjqRF/ndzkLXS4k=;
	b=5pd0/SxKwyvhaJQFusidlOV/U6mLACsLps7g4BsIYX08GEC3UabvfV6xY6bRO5NY8DOq
	 4hCt+dUTXogeW8HXtQESYsQDLmQIcLYpdxfDfPXHRg3Ti8YpB9nvi0MUgddj0C/YaU7FV
	 gllrSqbdk14mSQchWkGI3MdRHdKLo/UPMZnl3h0QIs42oLEtN65dhuvRz5bDd932emchH
	 6Ymd7j9/rNPVMJCyCcg1EfhXxBdmubh06SnXrdaD1Y18qa8wVV1/yvnhl1ahj7WPO0yxm
	 J0a3KgzOoUkzJPZaHpadYL8ATI0wKrtqHixJ9zA7AUZdrAZIy3YDXhni9VyIwZYWP3Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ar3YETeU;
	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 0960A606A322;
	Mon, 26 Oct 2026 23:10:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ar3YETeU
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793056206;
	b=AJxd2f+p0J5J6Zm/8GqsGC3X5527qheFSINRzKv/Gms2eu+BdOsYbYOJbPKnhdqnyQ8B
	 848YeqihaZcS96VYlzAK3W8JA2DZaaaXTT7cOmuzvLVsFvESyzRxEqPVZhfjmWDt73cBn
	 SK8ZUu714Bpy1CrGsEg2w3a4K2N7ITbfEJ6caS/2ooefhyO3IP/0HfE78aUF+hcZalqL0
	 kr+N0mKB0EQK4VU+RZAuXxDTFD07AcRTB2imZayQSQnRoaOiXuQFnnqbuXCG/PHi7rX4M
	 DRR9GuKOTQh3W52EzoYyTJ1qWc7z8WHZwDPgySWIiM5PKncsTdE92VOzlaIDbgQWE2w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793056206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=8BIpdA/wDgue8dy77oW+PBKLiAzenjqRF/ndzkLXS4k=;
	b=jvFb0GU4nGr7GiqJ/MCjPipAwd9xW3G9Q1iaIh+ZjWoK1qE1U3kJMJyWhLY20wMkxb1j
	 HAWxRbF4weWafQKXFC67XdT8RdYECvjAZoc7qDfXg2o3V9hc8EWH9gDI8yN9UmfsgQ5Zd
	 Jok5Q4A9GhoEr2B0EdR7X5gwew6qsCvndi6DeexYVA+Zl/vdgRSAiq4mltKeh+hEbaJK6
	 ZAv2o82Nae/+O8az70djCZVAmLMG846KmwpWVKNKNeitYdL6zZrnf14Un4iH7OiewHwWJ
	 SmnObupzEj7nSmYJ8BQ6a5KTocqTtdS5pBMShZpD6y+ryJU9iPoL36ytRF0XWm4xghA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ar3YETeU;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9381606A31A
	for <netdev@vger.kernel.org>; Mon, 26 Oct 2026 23:10:05 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8A9181F01825;
	Mon, 26 Oct 2026 23:10:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793056205;
	bh=8BIpdA/wDgue8dy77oW+PBKLiAzenjqRF/ndzkLXS4k=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=ar3YETeU/xVyH7bEH8JW7U0gm2nSQxCpMaHMwx57uXRRAXVWi7neXzi2Vhxd/QCxL
	 gEuSQ1MjEk97wKqJ32RdtKuA42Aa7ixm1we8yEwLsk9YJVjnPG32unx53xOYwsRSmU
	 Yaa9FApEUjcsmm06aMgD4ayWSBzQLk7hSfjpjBVHSLhoN8NypraQLBPyh8p0q1SP+f
	 r6zmDExgOTqUatdwmWOBl1BnLp1ypuMlikk/C1bdX5WLVdo2hpjnDf765VHKemj6o5
	 VdaGtqSEU25o3b3+OZ8NAyIt5NKgEa50DrYR0PWVedz/6+9nJ6aj28Dhcsk4mqia9z
	 ENk0MM2ZPJihQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 815873AA80F0;
	Mon, 26 Oct 2026 23:10:05 +0000 (UTC)
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-In-Reply-To: <20261021155434.66572-1-phx0fer@gmail.com>
X-Cc: jhs@mojatatu.com, jiri@resnulli.us, netdev@vger.kernel.org