🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2738

Re: [PATCH v3 0/4] rbtree: declare augmented callbacks per field, fix rb_add_augmented_cached() descent

#2738
From: Peter Zijlstra
Date: Tue, 13 Oct 2026 10:35
23 lines
7095 bytes
On Mon, Oct 05, 2026 at 05:32:32PM +0800, Yiwei Lin wrote:
> Peter Zijlstra (Intel) (1):
>   rbtree: declare augmented callbacks per field with RB_AUG()
> 
> Yiwei Lin (3):
>   rbtree_test: use rb_add() and rb_add_cached() for the basic tests
>   rbtree: update augmented data on the way down in
>     rb_add_augmented_cached()
>   rbtree_test: use rb_add_augmented_cached() for the cached augmented
>     test
> 
>  Documentation/core-api/rbtree.rst |  27 ++++-
>  include/linux/rbtree_augmented.h  | 194 +++++++++++++++++++++---------
>  kernel/sched/fair.c               |  70 ++---------
>  lib/rbtree_test.c                 |  62 ++--------
>  net/tipc/name_table.c             |   7 +-
>  5 files changed, 181 insertions(+), 179 deletions(-)

These look good to me; thanks!

I've stuck them in queue/sched/core for the robots to have at and will
push them out to tip/sched/core soonish.
Technical Details
Message-ID: <20261013103534.GX4121339@noisy.programming.kicks-ass.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-345551-linux-kernel-netdev=dewy.ru
References: <20261005093236.62702-1-s921975628@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-345551-linux-kernel-netdev=dewy.ru
From: peterz@infradead.org (Peter Zijlstra)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v3 0/4] rbtree: declare augmented callbacks per field,
 fix rb_add_augmented_cached() descent
Date: Tue, 13 Oct 2026 12:35:34 +0200
Organization: Usenet Network
Message-ID: <20261013103534.GX4121339@noisy.programming.kicks-ass.net>
References: <20261005093236.62702-1-s921975628@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="2030357"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:i8H4Rlor5TUT+zdl6XjcJvFetJI= sha256:qtVeYPOjGMbI3eXB2p3jxOyl/YtTOcXDhgYYdS0bP2Y=
	sha1:+2dxSuHQMzNFfGXwbvaEXzBLaMk= sha256:E6OJ/4zwT5p4O22a1znbFxg/y9SSbGl2SSHzM3S9yJc=
Content-Disposition: inline
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 04F6710FDE8; Tue, 13 Oct 2026 14:01:04 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 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, 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=infradead.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 ABs5rYtW4-Os;
	Tue, 13 Oct 2026 14:01:01 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-345551-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=infradead.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 013DC10FDFF; Tue, 13 Oct 2026 14:00:52 +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 6DA10C7C14; Tue, 13 Oct 2026 10:37:21 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 34BEB43304D;
	Tue, 13 Oct 2026 10:35:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="p1zOaNkA"
X-Received: from casper.infradead.org (casper.infradead.org [90.155.50.34])
	(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 DFCF03F65E6;
	Tue, 13 Oct 2026 10:35:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791887743; cv=none; b=ReOAhOKVNypbFEXBaQPzqEJoPC+Ar0YAL1CgpARQUWnbgblX+jpP/z5AHDE0cFCKoUNHkIWpwGRdsxbHLzAxDnP6IuHrAR3mG42C1DkmxcOjUEE45nmPW3sNKCSp+N26jCJ2wPqNB0V7JsKq/CzCLzEy9FH3Sk/izjlhKLPCVZY=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791887743; c=relaxed/simple;
	bh=mTyd3PhUElHUVUBqe9hhUBYvWwKltnX4KUT3qFnptbg=;
	h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:
	 Content-Type:Content-Disposition:In-Reply-To; b=YAR1wjMSGwzNVY0od3yYaly6YUDVW6ihKY1INF6XcLE/Mrj1XuaWBn3Ek68r/UOoJUpzyQSvgsdWxAKJ+O6bdkiFSyGVW9YwZsAE2I3dWLFsp5b2GQcfznKDMpjQqcgklLHlj3u/NPVzSH6a+7fSfRaGqCPipsi2fmRq9xsF3SM=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=p1zOaNkA; arc=none smtp.client-ip=90.155.50.34
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:
	Content-Transfer-Encoding:Content-ID:Content-Description;
	bh=w+3fStK7hRjLi1V48B6LtaGduvjwdLOV+yd6wwqyTCY=; b=p1zOaNkA5Usi4UWE7aCti/rl0v
	DJc1bl084NZdBWbc9W14cG8GgQouHaThwIh7xjDMaqqW3rlPWlSDV+QJdcSyAU9kZaw8pgNzNsFHP
	iyh8QQR6EIw8ghIXwPFM0kssWYhW7yXmlj/AfTMNvqjsc1PZ3npsr7uQygoPYQIFLsXKCTxgyUPfS
	Jd3m6G3BqJ1lqqh6huV0cV463M5ZJ+5LgDwyQbSM7dfEaOrh4l1zveBxNRNfLOhBZNAC0YRGr2X8D
	Uxw44MNh+K7CGrXjzHk2fqsUTm64oB9aRb/HSbcO4l4dHBEyVyl9ncWpklA8MrOm0N2rCucbRpJkm
	Hu2t0LrQ==;
X-Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net)
	by casper.infradead.org with esmtpsa (Exim 4.99.1 #2 (Red Hat Linux))
	id 1xGZr5-0000000Co2B-0MX5;
	Tue, 13 Oct 2026 10:35:35 +0000
X-Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000)
	id 7761A30015F; Tue, 13 Oct 2026 12:35:34 +0200 (CEST)
X-Cc: Andrew Morton <akpm@linux-foundation.org>,
	Ingo Molnar <mingo@redhat.com>, Juri Lelli <juri.lelli@redhat.com>,
	Vincent Guittot <vincent.guittot@linaro.org>,
	Davidlohr Bueso <dave@stgolabs.net>, Jon Maloy <jmaloy@redhat.com>,
	netdev@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
	linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org
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-In-Reply-To: <20261005093236.62702-1-s921975628@gmail.com>