From nobody Mon Sep 14 19:48:06 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4hkG0X0ZNrz6rchp for ; Mon, 14 Sep 2026 19:48:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hkG0W3YMrz4XDF for ; Mon, 14 Sep 2026 19:48:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789415291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gnc43pazv+dZeS1wZxOXksn3Jwv6zt8TWhuvAnUPRLA=; b=WROmFleKDmytH6ja7FH/fA9FyAd7TePTJh0wAvVdmmG0St3hyr+WCANQh37WBBqLfQDR2P QCm2wtg5aP8PSkV5dGRb8Xqxh8yEQKTNOL5jUhUDqztbI8IqAHY7rInyfrOeQSZP6WoCu7 2BixTI4eoxK5yfJK4yEnfsz45ikyytUwGkVTFGqXTq2FhLlrrfYMc7Eb7EIsI5VnV5dsvU v0/Ly9YfBJ6HTJaYg8pd2eVZI913Xvnwlv+cFaUdyOprD6awsAFlHeF14RUiL5Enaz2que nURVR6anashu6LaYz2RcQseuw+26G0xNp72l+9NsqyCVibwTzEZAmo8Texn4ew== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789415291; b=HFexAc5CSdsIptThkaG2IcN7EVSsYbnB+7bg4oZdlbarT6dbx6WvfSIO4vyBEzWprGvp+q Pfa5H76jQXEN388t05myNdHupqJqwokVb5X44pF7SjH3NIscpkxtqSuDvmiEpKdPWiVPRL zWBZkRKEkyzIynG/itG+zL0jQSULzOGufdoHdZhkDROqfruTk2/DaAq+YuqS5sSFWpoyb+ P4H7UbVn0MeFgXUsod2gtvCO1kSI/VetAGF5xCQf95qpEd4s96dgc7p2B/KeKrlcumqA+5 2gYNJByqCCWkXteirkx/qddAIGAnsQdg6xh6WX+a3rSif3IV3qo5QbpkLjvlkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789415291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gnc43pazv+dZeS1wZxOXksn3Jwv6zt8TWhuvAnUPRLA=; b=Bi1vurd+gGo+reBW6tEUJRBLX/0PDRiKL36N5lXmYY+MbBFM21TRScLx38ecxa5E6X5j2Q fVcpMAySvqjIwWOy1uMTfuTizB/jfspXamJ3J4KK05tpB0MYM6WcP13TzKPy/w9poqQFQe K6OCT4r6n9JPvaj7VJlNL8GZRUM1XGyTAcpihY0+0JqVy1if+XIl1eSDZHpF8Oc0SvOKBS k3cN+ovCAJ8ndw799ZKb/3Yxfxm90CRm40naZuQ16rxqSBpIEdI8PutWMZJ2uznEWVvvMa MF+Syvyhfe6ogVqNeuWqodkTkyErOlswbRlSTi4APwqEIae1tv1tXuEDuusCUQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hkG0W2M9zzRjF for ; Mon, 14 Sep 2026 19:48:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 242c5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 14 Sep 2026 19:48:06 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: e975ce86ff11 - main - LinuxKPI: rcu: add optional condition to list_for_each_entry_rcu() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e975ce86ff11a330128f5b21c7cd11c28d3aff87 Auto-Submitted: auto-generated Date: Mon, 14 Sep 2026 19:48:06 +0000 Message-Id: <6aa84f76.242c5.68f2b005@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e975ce86ff11a330128f5b21c7cd11c28d3aff87 commit e975ce86ff11a330128f5b21c7cd11c28d3aff87 Author: Bjoern A. Zeeb AuthorDate: 2026-08-27 08:04:08 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-09-14 19:05:59 +0000 LinuxKPI: rcu: add optional condition to list_for_each_entry_rcu() list_for_each_entry_rcu() can take an optional condition. Add the macro argument so code remains compiling but do not do anything with it just yet. Leave comments as list_for_each_entry_rcu() likely should have a different implementation. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D59292 --- sys/compat/linuxkpi/common/include/linux/rculist.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/rculist.h b/sys/compat/linuxkpi/common/include/linux/rculist.h index 066ed92b7996..5d5934bc4443 100644 --- a/sys/compat/linuxkpi/common/include/linux/rculist.h +++ b/sys/compat/linuxkpi/common/include/linux/rculist.h @@ -37,7 +37,8 @@ #define list_next_rcu(head) (*((struct list_head **)(&(head)->next))) #define list_prev_rcu(head) (*((struct list_head **)(&(head)->prev))) -#define list_for_each_entry_rcu(pos, head, member) \ +/* We are currently ignoring the optional condition to check. */ +#define list_for_each_entry_rcu(pos, head, member, _condition...) \ for (pos = list_entry_rcu((head)->next, typeof(*(pos)), member); \ &(pos)->member != (head); \ pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member)) @@ -47,8 +48,9 @@ &(pos)->member != (head); \ pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member)) +/* This should likely be its own implementation. */ #define list_for_each_entry_lockless(pos, head, member) \ - list_for_each_entry_rcu(pos, head, member) + list_for_each_entry_rcu(pos, head, member, true) static inline void linux_list_add_rcu(struct list_head *new, struct list_head *prev,