Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2223994/?format=api
{ "id": 2223994, "url": "http://patchwork.ozlabs.org/api/patches/2223994/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260416131453.308611-11-pablo@netfilter.org/", "project": { "id": 26, "url": "http://patchwork.ozlabs.org/api/projects/26/?format=api", "name": "Netfilter Development", "link_name": "netfilter-devel", "list_id": "netfilter-devel.vger.kernel.org", "list_email": "netfilter-devel@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260416131453.308611-11-pablo@netfilter.org>", "list_archive_url": null, "date": "2026-04-16T13:14:52", "name": "[net,10/11] rculist: add list_splice_rcu() for private lists", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "3ab9ef6053b3ca1d8f1c87534bae5b7f60ab9f0a", "submitter": { "id": 1315, "url": "http://patchwork.ozlabs.org/api/people/1315/?format=api", "name": "Pablo Neira Ayuso", "email": "pablo@netfilter.org" }, "delegate": { "id": 11902, "url": "http://patchwork.ozlabs.org/api/users/11902/?format=api", "username": "strlen", "first_name": "Florian", "last_name": "Westphal", "email": "fw@strlen.de" }, "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260416131453.308611-11-pablo@netfilter.org/mbox/", "series": [ { "id": 500161, "url": "http://patchwork.ozlabs.org/api/series/500161/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=500161", "date": "2026-04-16T13:14:48", "name": "[net,01/11] netfilter: arp_tables: fix IEEE1394 ARP payload parsing in arp_packet_match()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500161/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2223994/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2223994/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <netfilter-devel+bounces-11978-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "netfilter-devel@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=netfilter.org header.i=@netfilter.org\n header.a=rsa-sha256 header.s=2025 header.b=G//X2aiR;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-11978-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=\"G//X2aiR\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.70.190.124", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=netfilter.org" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fxJZB52hrz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 23:21:38 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 864E731A87EC\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 16 Apr 2026 13:16:01 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id A345C14A4F0;\n\tThu, 16 Apr 2026 13:15:17 +0000 (UTC)", "from mail.netfilter.org (mail.netfilter.org [217.70.190.124])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id F35AC3BD24A;\n\tThu, 16 Apr 2026 13:15:15 +0000 (UTC)", "from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id E1CB960255;\n\tThu, 16 Apr 2026 15:15:13 +0200 (CEST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776345317; cv=none;\n b=n/6Bz8DiqiN6/x2DucjUGLpTAMqsj2UnPLuE0J7Q4rCElFebfxGxSoiOHMB9J0NgbkLrh18Fy2/pvSaqcttmeDNDZbTP42SMvtxiiFbszr01PeQJPcF5SfWphtgKtgvs6w8BsH8852Hl5w40osmhE1Qmr6aSyMUBk7q2z3zdL5E=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776345317; c=relaxed/simple;\n\tbh=n82jOt6UEQC7+N0W8gYIzx30WEx1rR+0cYIp6zIdwf8=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=UDBapShPaqVuWHPn8YLZCts63zLoq3VVC7JEkD23pbWVEbu3rnW/8ah77vjK9fOKdcQzkN8OpQEels3gkSVv6RIiTo8oPpXVFx4t9oAIny9ag6tmx/yVJLgMFwcqUsybqvzJkjItYG94E1Rne9c8rEfIDVn1XBXAMv0EIo2944A=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org;\n spf=pass smtp.mailfrom=netfilter.org;\n dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=G//X2aiR; arc=none smtp.client-ip=217.70.190.124", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;\n\ts=2025; t=1776345314;\n\tbh=o8VaDYQ2e6Gez2TNQ38DdiCZe12qY8iiXBtviqCYhfM=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=G//X2aiRfFXu+oy/TCnLFPnsnMG/Io+Ng5ZL77mves/6OPgQ6Yw2ev92J8RQe5bgY\n\t EsSivdFCiqLQSeGtL7AKuIwfoueXnTg0UyhJfkjelYK7dY2kmMvCFFtiIiceI4sDow\n\t Gy5aVu6oyN2ZvyYgLouuF3/4hqhv8V50FFQZ1Z81F+j5Ki3ht1oQWWNXwj1EUma+w8\n\t Y8wM/8TF4zHTotP9itoDc2JlMD17C5LBTjb0U4akPciA1RRSzpIp3fJFahLv2Fbf+g\n\t m6TLiZi5qijhtgyvHAEkLR3EYbomxnpEo1b+EV9pZk/qmu85/3sE+tuIRW0ppIu0jY\n\t oG3MX1glRpxjw==", "From": "Pablo Neira Ayuso <pablo@netfilter.org>", "To": "netfilter-devel@vger.kernel.org", "Cc": "davem@davemloft.net,\n\tnetdev@vger.kernel.org,\n\tkuba@kernel.org,\n\tpabeni@redhat.com,\n\tedumazet@google.com,\n\tfw@strlen.de,\n\thorms@kernel.org", "Subject": "[PATCH net 10/11] rculist: add list_splice_rcu() for private lists", "Date": "Thu, 16 Apr 2026 15:14:52 +0200", "Message-ID": "<20260416131453.308611-11-pablo@netfilter.org>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260416131453.308611-1-pablo@netfilter.org>", "References": "<20260416131453.308611-1-pablo@netfilter.org>", "Precedence": "bulk", "X-Mailing-List": "netfilter-devel@vger.kernel.org", "List-Id": "<netfilter-devel.vger.kernel.org>", "List-Subscribe": "<mailto:netfilter-devel+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:netfilter-devel+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "This patch adds a helper function, list_splice_rcu(), to safely splice\na private (non-RCU-protected) list into an RCU-protected list.\n\nThe function ensures that only the pointer visible to RCU readers\n(prev->next) is updated using rcu_assign_pointer(), while the rest of\nthe list manipulations are performed with regular assignments, as the\nsource list is private and not visible to concurrent RCU readers.\n\nThis is useful for moving elements from a private list into a global\nRCU-protected list, ensuring safe publication for RCU readers.\nSubsystems with some sort of batching mechanism from userspace can\nbenefit from this new function.\n\nThe function __list_splice_rcu() has been added for clarity and to\nfollow the same pattern as in the existing list_splice*() interfaces,\nwhere there is a check to ensure that the list to splice is not\nempty. Note that __list_splice_rcu() has no documentation for this\nreason.\n\nReviewed-by: Paul E. McKenney <paulmck@kernel.org>\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\n include/linux/rculist.h | 29 +++++++++++++++++++++++++++++\n 1 file changed, 29 insertions(+)", "diff": "diff --git a/include/linux/rculist.h b/include/linux/rculist.h\nindex 2abba7552605..e3bc44225692 100644\n--- a/include/linux/rculist.h\n+++ b/include/linux/rculist.h\n@@ -261,6 +261,35 @@ static inline void list_replace_rcu(struct list_head *old,\n \told->prev = LIST_POISON2;\n }\n \n+static inline void __list_splice_rcu(struct list_head *list,\n+\t\t\t\t struct list_head *prev,\n+\t\t\t\t struct list_head *next)\n+{\n+\tstruct list_head *first = list->next;\n+\tstruct list_head *last = list->prev;\n+\n+\tlast->next = next;\n+\tfirst->prev = prev;\n+\tnext->prev = last;\n+\trcu_assign_pointer(list_next_rcu(prev), first);\n+}\n+\n+/**\n+ * list_splice_rcu - splice a non-RCU list into an RCU-protected list,\n+ * designed for stacks.\n+ * @list:\tthe non RCU-protected list to splice\n+ * @head:\tthe place in the existing RCU-protected list to splice\n+ *\n+ * The list pointed to by @head can be RCU-read traversed concurrently with\n+ * this function.\n+ */\n+static inline void list_splice_rcu(struct list_head *list,\n+\t\t\t\t struct list_head *head)\n+{\n+\tif (!list_empty(list))\n+\t\t__list_splice_rcu(list, head, head->next);\n+}\n+\n /**\n * __list_splice_init_rcu - join an RCU-protected list into an existing list.\n * @list:\tthe RCU-protected list to splice\n", "prefixes": [ "net", "10/11" ] }