From nobody Tue Jan 24 08:54:03 2023 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 4P1LP75Wskz30x2S; Tue, 24 Jan 2023 08:54:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P1LP71qyLz3R5j; Tue, 24 Jan 2023 08:54:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550443; 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=Th9YGC1IWSFvfqm5Eq6E2wMhfy1epWLYV9YncLfc8Js=; b=YJicuqavgnI2SvtvY+jYQ9LMY2dQtam7qoRDWDRRxpqlH4WQQ42cwEf/Dg0FSVmEebMV1Y xqs3aETiIpzqw8bgOQU0O8TkI8+7PP7rLHiPEmLeJYgB0rvnVNW6TOY2LUPd4HeczHITUj 9/CAA7qUWqbaYdA5gSH56c67l6iJbNWgwPi4q1KQPkNyLixXXVkXQrlyxhmIOMZ8O95ayo M3SYQNwLC5+yIMhC+n3NLYk1jbN8EGnQKtzuKyVSu68FjeiykGfuB0VSaQ2kYa+liJCueJ zm2SE6WOGy4esut5J9x5ZNdhDwxwuEsj+Hc/y4wZ11vooBdhQaCxYHHyXhswrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674550443; 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=Th9YGC1IWSFvfqm5Eq6E2wMhfy1epWLYV9YncLfc8Js=; b=A0sd5tHMYm/3uFpd3aZrRhU1qEWi6qzMPooikw7eeC0u5Sndi023wF/2B5SXfvcTwckO/y agjy1uot0833TLgkoKAYSlfzZQ+COSn7LRPcbMHCh7skQn/hdP9bfSzImlk8/Q2VZkoKDc MGYQfyNgHCjXdSdXqv2GCNOznODoZJri+MviU2YRkivgsDi0mgRkm7QLmyqqcdzdtQL6gW zpgObqYZW53iiDec4DF17Z+JXyg32dIZ2VAUjc6ED1LgqtxNEJbWNKN3NO2bWu565Wfdh9 f71SMhAtzqA9N0BZgAwHL6SqtcWeUcPGR6ZZfh2VYf3fNzfKJzmqDzdtucTMAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674550443; a=rsa-sha256; cv=none; b=v7y/XexttVrKLrqT92uzpuhMkP2VxPIgaYKV21PWe6G7zPRAO1MDyrHvGwzBQptbHwpIDs xaLFZTXVRZ97ro6RlGjF3H160lv+/k9RFSikDSTHpR1JzpX+adLBmvZYGVkLz+/A1uuhz7 9l0c+YTU9SYF0TfPeVIU2k7UGZsN+bxeHBd9MeTHxTW9rrprvu2OQ0MWAJWvl5H2CFm2hp oX4gON5YLIit1SGwxhEVVu4tHFRJKyz2Lz4pC9RcIVOfxTyMd0weZydNY4HoQgktGh9Tlo 9YhAXinFQ+/U7c3nEWz21RoHqE9nO7Z/KmGKjbDwI3EVcd23dPsXZZ11d/SXRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P1LP70xDCz13MB; Tue, 24 Jan 2023 08:54:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30O8s3rj035969; Tue, 24 Jan 2023 08:54:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30O8s3FC035968; Tue, 24 Jan 2023 08:54:03 GMT (envelope-from git) Date: Tue, 24 Jan 2023 08:54:03 GMT Message-Id: <202301240854.30O8s3FC035968@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: d0e22c1cf1d7 - stable/13 - linuxkpi: Add `list_for_each_entry_from_rcu()` in 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d0e22c1cf1d7c8e847f719e8c8d35aaf4f042d21 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=d0e22c1cf1d7c8e847f719e8c8d35aaf4f042d21 commit d0e22c1cf1d7c8e847f719e8c8d35aaf4f042d21 Author: Jean-Sébastien Pédron AuthorDate: 2022-11-11 17:42:10 +0000 Commit: Emmanuel Vadot CommitDate: 2023-01-24 09:08:00 +0000 linuxkpi: Add `list_for_each_entry_from_rcu()` in Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D36967 (cherry picked from commit 23ebeac87f400e1c35b18392f968f6fa38ae128d) --- sys/compat/linuxkpi/common/include/linux/rculist.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/rculist.h b/sys/compat/linuxkpi/common/include/linux/rculist.h index e0c3f79d9e5a..305c425574b4 100644 --- a/sys/compat/linuxkpi/common/include/linux/rculist.h +++ b/sys/compat/linuxkpi/common/include/linux/rculist.h @@ -44,6 +44,11 @@ &(pos)->member != (head); \ pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member)) +#define list_for_each_entry_from_rcu(pos, head, member) \ + for (; \ + &(pos)->member != (head); \ + pos = list_entry_rcu((pos)->member.next, typeof(*(pos)), member)) + #define list_for_each_entry_lockless(pos, head, member) \ list_for_each_entry_rcu(pos, head, member)