From nobody Mon Sep 14 19:48:06 2026 X-Original-To: dev-commits-src-main@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 4hkG0Q4Jx1z6rcfJ for ; Mon, 14 Sep 2026 19:48:06 +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 4hkG0Q3mL9z4Wyw for ; Mon, 14 Sep 2026 19:48:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789415286; 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=Og8MFAW5ykAIUq7r/SgXaAJG8csU1RqS0wU4fyPhXMVlu3TzAjzFHn+hs/DkcuFtEgo7wA rDoyoTaGC/nMEmnbzOn14VtBUACYtXeLUX5cqjUBxLUE096jw1jBV7EFtryFbi/oog6jsD IKDbgthbQ4xknIsHBxawu9uAoANY1R5cnKv4n6srRLVHRx5EppU67/LNaH9HXpWOnzYC2s 0n2ovUUecwWYMLsFt+ULgdQvlmhhSf0KrY6s38AyeDwmIwjPcD/hENsJcEe1IObCF5ubXj 7U3vzXfMrol+Inbj7jgE3yWvioVic7/YDc8AXb1qHWuDCTEv8MmR0Mslzz9yLQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789415286; b=pc67eAaDe1tw5mt1jWNTOowS4qwPgp2KEJ/MF/pMdcbsvU/WM8nxe38Zz9SI5A71GM9LAL SjowuGC2IbxCowiup/ZdmDoKZ0jOMFdb4eazXV2qo4hJsdgamnYtH1mR2cH6Uzry8p64tH 5ezlSuwFMELKano+iS5dKrnDT1CoGlyKYKHwWF8sOG+aWjp5Tlgi/XRAPfzEaIvDkguC3t S94FEI61xSNPfDLoyul3rOvGD14HSrZf/pqB8HJuC1AWUOfNx7fVBW1qspF5DOVHi0rK1a XHNef7KD2Xl67Pa9A4NmyX9B5AUDPKkODyortH3dGY4vn9I2otpzvoNLZaRVhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789415286; 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=QV/IZ6SOyWoYd/28pnWuupUnHnaGFeWZGU73eQagNLhxKwZP8vtG2EYle9Lhdf2+9GXCrd e1OgLiI9V8lEx9ALj6cG0JLUfdQtNOMRA4BpCHN+gW3cP9Gh4v72ZJgezSAHVnfg2WQ9PW rhBhZdCqjnWEFyfbEybkDKeuIEjdsx1Qyo/fLJOoRDwqFrLcQ9feAAeN8Bvq1PSfXSgQDE kwY2OVSYMvdjcxpDrC9DQrDS8GdaB4H9aJRILgqyvzFos6014jOTCcF6mqb+iSiL3M3f19 lM98qrkEwz1chkNJS01kKOJcM05ADGPmgw4ivvyaakaJY9gnz7fSY0akmy3ZGA== 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 4hkG0Q2FtLzRXn for ; Mon, 14 Sep 2026 19:48:06 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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,