From nobody Sat Sep 19 14:40:22 2026 X-Original-To: dev-commits-src-branches@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 4hnBx321vzz6srkg for ; Sat, 19 Sep 2026 14:40:23 +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 4hnBx25cBNz4WgL for ; Sat, 19 Sep 2026 14:40:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789828822; 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=dhu5J7I4TxVU9CCH+jthde+G3Ljzd4SRG0qGJpl9500=; b=psp8eIX2lLH5iAyqzUhs6uBSC+liqUl3JjIR8JP+it+qoCRblzI1rPLufCuY7WwDBeEAw2 WL8yXgxX1lMFTiYicByCK7ZQR5iH/YKKU8//N24jX4NXkTGwd8SjHfSuYNDv49nZczVbXn aF+HeF1UiSZb2jYcChNY35+D9H0SUrSwarYCEIfptGFlfv8YIRLC1xUByg6DXHymIw+dKr SVu2u8EwoKeyE+YPZcMJPuLGoNkLIAoO+iTERtosQVvrJ2gJtDMcKcfNSNgs7bgsW4Zzo6 e/FHOsaSN8Qf6QChahnXPf6m0VN/IKwZ0e/1xAlTrmPG3OEMlbtZaE5DjuPuRQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789828822; b=RIXJbGX2AsHoYj5n1XyX3pwQZO25qYd/bhTRgoBULnRJipe1g7epvq+zVZeT6P7nqu/YOy szj7k6jneiDikqEQOGCeUmPAV1K7dsV1THqSUMjoC290VXAVuyDZgQARZSBtSek9K5QDCV rrzD9INBUbGkk9T7GIUFYG1D2o+fZNgULssMABBee9aYzO3JSt3ZYvlYYiCkboHmRHN3Ug 5HV3sthR+dt6fxFaC/rWgt0H9aqEbduN3K/vRORN/anBYmgS6JsfNydDWh9VUn3UCsl/XA syGoXlxDhLorcdxuVGg5NrnKgssIcBfCKmLpqWFdZ/7ZUALeZD9cLz1QKeEwZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789828822; 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=dhu5J7I4TxVU9CCH+jthde+G3Ljzd4SRG0qGJpl9500=; b=QxXH9wTs7BxmgnOlw78l/YWEGrFPGeWQupE+TlIu35h8tCZRu8Tl40Fkp9AZeS5pdmmAcq iaElegRr1FhhuMhfM337iweVclrX/KBMUgnGI11DwFqyP19MymJV063THkhKZHmImRbmUc AsG83cFq6qQjgvLegMWkDxxa9T7mNwJ4pwQaHNAQ0aqfckqJUEu/oTSilws3OIOfZwjEEc 7fcg3nwHRFmZErjxf9lk4igcHmkYstVlZcWZg4XRIYr0zVz71L4s+oz5yuaPfL2lBoW7wb PpOvmGRX4oXxQ/0SaOUSI0b/g+4iUL2kW4EmPMuSe2YP1bmcKXEanNavAR0+Tg== 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 4hnBx24T6vz16nD for ; Sat, 19 Sep 2026 14:40:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 18b2e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sat, 19 Sep 2026 14:40:22 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: c1a87ab11976 - stable/15 - LinuxKPI: rcu: add optional condition to list_for_each_entry_rcu() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/15 X-Git-Reftype: branch X-Git-Commit: c1a87ab11976a2c9bdec9d725bc4a17c8ff2d42b Auto-Submitted: auto-generated Date: Sat, 19 Sep 2026 14:40:22 +0000 Message-Id: <6aae9ed6.18b2e.7358dacb@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=c1a87ab11976a2c9bdec9d725bc4a17c8ff2d42b commit c1a87ab11976a2c9bdec9d725bc4a17c8ff2d42b Author: Bjoern A. Zeeb AuthorDate: 2026-08-27 08:04:08 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-09-19 09:34:09 +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 Reviewed by: dumbbell Differential Revision: https://reviews.freebsd.org/D59292 (cherry picked from commit e975ce86ff11a330128f5b21c7cd11c28d3aff87) --- 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,