get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2227170/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2227170,
    "url": "http://patchwork.ozlabs.org/api/patches/2227170/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260423095834.11932-6-chrubis@suse.cz/",
    "project": {
        "id": 59,
        "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api",
        "name": "Linux Test Project development",
        "link_name": "ltp",
        "list_id": "ltp.lists.linux.it",
        "list_email": "ltp@lists.linux.it",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260423095834.11932-6-chrubis@suse.cz>",
    "list_archive_url": null,
    "date": "2026-04-23T09:58:31",
    "name": "[5/8] syscall: Add epoll_wait10",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "79ee358024e01173ef5e4e27b0daa9cf9205317c",
    "submitter": {
        "id": 8530,
        "url": "http://patchwork.ozlabs.org/api/people/8530/?format=api",
        "name": "Cyril Hrubis",
        "email": "chrubis@suse.cz"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260423095834.11932-6-chrubis@suse.cz/mbox/",
    "series": [
        {
            "id": 501170,
            "url": "http://patchwork.ozlabs.org/api/series/501170/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=501170",
            "date": "2026-04-23T09:58:26",
            "name": "Add more epoll tests",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501170/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227170/comments/",
    "check": "warning",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227170/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "ltp@lists.linux.it"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "ltp@picard.linux.it"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=xJVzlDFd;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=ozs6hHE4;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=xJVzlDFd;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=ozs6hHE4;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)",
            "smtp-out1.suse.de;\n dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=xJVzlDFd;\n dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=ozs6hHE4"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\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 4g1WmJ5jVRz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 20:00:00 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 435C03E5385\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 11:59:58 +0200 (CEST)",
            "from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 96DF43E5399\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 11:58:30 +0200 (CEST)",
            "from smtp-out1.suse.de (smtp-out1.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-3.smtp.seeweb.it (Postfix) with ESMTPS id BA1881A00980\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 11:58:29 +0200 (CEST)",
            "from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104:10:150:64:97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out1.suse.de (Postfix) with ESMTPS id 811586A848\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 09:58:20 +0000 (UTC)",
            "from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 70E0F593A3\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 09:58:20 +0000 (UTC)",
            "from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id 8nmfGjzt6WlzUAAAD6G6ig\n (envelope-from <chrubis@suse.cz>)\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 09:58:20 +0000"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776938300; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=mBPY5yGfBEDFdmk+0cFDX1fS02dOAqrMOoEuieuziLk=;\n b=xJVzlDFdcTbgu2cVMgbmkC1aog8gaq9khGxTPRspvxDLzp7m4N8uGpmxF60r5F5QD4ngqO\n dnm5wO9q/nqUwS3ZQJChQgNqbDkj9++m+65IFFB6SuF4DWGX/0jaLhzyy7AKuLoOuXM5sT\n CUAbOXgSalb3+uPvbhLycBx1ybYkItg=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776938300;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=mBPY5yGfBEDFdmk+0cFDX1fS02dOAqrMOoEuieuziLk=;\n b=ozs6hHE4YmWWDiYmLC+FJ1A2fqzG3jRR66rPrldylOMxjX3sSNER5vAiNeLN8Knxju4kVH\n uBQ0nJt2iG+SNODw==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776938300; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=mBPY5yGfBEDFdmk+0cFDX1fS02dOAqrMOoEuieuziLk=;\n b=xJVzlDFdcTbgu2cVMgbmkC1aog8gaq9khGxTPRspvxDLzp7m4N8uGpmxF60r5F5QD4ngqO\n dnm5wO9q/nqUwS3ZQJChQgNqbDkj9++m+65IFFB6SuF4DWGX/0jaLhzyy7AKuLoOuXM5sT\n CUAbOXgSalb3+uPvbhLycBx1ybYkItg=",
            "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776938300;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=mBPY5yGfBEDFdmk+0cFDX1fS02dOAqrMOoEuieuziLk=;\n b=ozs6hHE4YmWWDiYmLC+FJ1A2fqzG3jRR66rPrldylOMxjX3sSNER5vAiNeLN8Knxju4kVH\n uBQ0nJt2iG+SNODw=="
        ],
        "From": "Cyril Hrubis <chrubis@suse.cz>",
        "To": "ltp@lists.linux.it",
        "Date": "Thu, 23 Apr 2026 11:58:31 +0200",
        "Message-ID": "<20260423095834.11932-6-chrubis@suse.cz>",
        "X-Mailer": "git-send-email 2.52.0",
        "In-Reply-To": "<20260423095834.11932-1-chrubis@suse.cz>",
        "References": "<20260423095834.11932-1-chrubis@suse.cz>",
        "MIME-Version": "1.0",
        "X-Rspamd-Action": "no action",
        "X-Rspamd-Server": "rspamd2.dmz-prg2.suse.org",
        "X-Spamd-Result": "default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000];\n R_MISSING_CHARSET(0.50)[];\n R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n MX_GOOD(-0.01)[]; MIME_TRACE(0.00)[0:+];\n TO_MATCH_ENVRCPT_ALL(0.00)[];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[];\n DKIM_TRACE(0.00)[suse.cz:+]; RCVD_COUNT_TWO(0.00)[2];\n FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[];\n SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n TO_DN_NONE(0.00)[];\n RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received];\n PREVIOUSLY_DELIVERED(0.00)[ltp@lists.linux.it];\n RCVD_VIA_SMTP_AUTH(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim, suse.cz:mid, suse.cz:email,\n ret_ev.events:url, imap1.dmz-prg2.suse.org:helo,\n imap1.dmz-prg2.suse.org:rdns]",
        "X-Rspamd-Queue-Id": "811586A848",
        "X-Spam-Score": "-3.01",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1",
        "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-3.smtp.seeweb.it",
        "X-Virus-Scanned": "clamav-milter 1.0.9 at in-3.smtp.seeweb.it",
        "X-Virus-Status": "Clean",
        "Subject": "[LTP] [PATCH 5/8] syscall: Add epoll_wait10",
        "X-BeenThere": "ltp@lists.linux.it",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "Linux Test Project <ltp.lists.linux.it>",
        "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>",
        "List-Archive": "<http://lists.linux.it/pipermail/ltp/>",
        "List-Post": "<mailto:ltp@lists.linux.it>",
        "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>",
        "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "Functional test for EPOLLPRI using /proc/mounts that produces POLLPRI\nwhen a filesystem is mounted/umounted.\n\nSigned-off-by: Cyril Hrubis <chrubis@suse.cz>\n---\n runtest/syscalls                              |   1 +\n .../kernel/syscalls/epoll_wait/.gitignore     |   1 +\n .../kernel/syscalls/epoll_wait/epoll_wait10.c | 107 ++++++++++++++++++\n 3 files changed, 109 insertions(+)\n create mode 100644 testcases/kernel/syscalls/epoll_wait/epoll_wait10.c",
    "diff": "diff --git a/runtest/syscalls b/runtest/syscalls\nindex 148a4dd0e..06948d8ad 100644\n--- a/runtest/syscalls\n+++ b/runtest/syscalls\n@@ -197,6 +197,7 @@ epoll_wait05 epoll_wait05\n epoll_wait06 epoll_wait06\n epoll_wait07 epoll_wait07\n epoll_wait09 epoll_wait09\n+epoll_wait10 epoll_wait10\n \n epoll_pwait01 epoll_pwait01\n epoll_pwait02 epoll_pwait02\ndiff --git a/testcases/kernel/syscalls/epoll_wait/.gitignore b/testcases/kernel/syscalls/epoll_wait/.gitignore\nindex f32ec535b..30139375d 100644\n--- a/testcases/kernel/syscalls/epoll_wait/.gitignore\n+++ b/testcases/kernel/syscalls/epoll_wait/.gitignore\n@@ -7,3 +7,4 @@ epoll_wait06\n epoll_wait07\n epoll_wait08\n epoll_wait09\n+epoll_wait10\ndiff --git a/testcases/kernel/syscalls/epoll_wait/epoll_wait10.c b/testcases/kernel/syscalls/epoll_wait/epoll_wait10.c\nnew file mode 100644\nindex 000000000..82cd8b15e\n--- /dev/null\n+++ b/testcases/kernel/syscalls/epoll_wait/epoll_wait10.c\n@@ -0,0 +1,107 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later\n+/*\n+ * Copyright (c) 2026 Cyril Hrubis <chrubis@suse.cz>\n+ */\n+\n+/*\\\n+ * Verify that epoll_wait with EPOLLPRI detects changes to /proc/mounts.\n+ *\n+ * The kernel generates a poll notification (POLLPRI/EPOLLERR) on\n+ * /proc/mounts whenever the mount namespace changes. This test verifies\n+ * that epoll can observe these notifications.\n+ *\n+ * [Algorithm]\n+ *\n+ * - Open /proc/mounts and register it with an epoll instance for EPOLLPRI.\n+ * - Fork a child that mounts and then unmounts a tmpfs filesystem, using\n+ *   checkpoints to synchronize with the parent.\n+ * - After each mount namespace change the parent calls epoll_wait and verifies\n+ *   it returns an event.\n+ *\n+ * Needs root to call mount/umount.\n+ */\n+\n+#include <sys/epoll.h>\n+\n+#include \"tst_test.h\"\n+#include \"tst_epoll.h\"\n+\n+#define MNTPOINT \"mnt_epoll\"\n+\n+static int efd = -1, mnt_fd = -1;\n+\n+static void setup(void)\n+{\n+\tSAFE_MKDIR(MNTPOINT, 0777);\n+\n+\tmnt_fd = SAFE_OPEN(\"/proc/mounts\", O_RDONLY);\n+\n+\tefd = SAFE_EPOLL_CREATE1(0);\n+\n+\tstruct epoll_event ev = {\n+\t\t.events = EPOLLPRI,\n+\t\t.data.fd = mnt_fd,\n+\t};\n+\n+\tSAFE_EPOLL_CTL(efd, EPOLL_CTL_ADD, mnt_fd, &ev);\n+}\n+\n+static void check_epoll_event(const char *desc)\n+{\n+\tstruct epoll_event ret_ev;\n+\tchar buf[1024];\n+\n+\tTEST(epoll_wait(efd, &ret_ev, 1, 1000));\n+\tif (TST_RET < 1) {\n+\t\ttst_res(TFAIL | TTERRNO,\n+\t\t\t\"epoll_wait() after %s returned %li\", desc, TST_RET);\n+\t} else if (!(ret_ev.events & (EPOLLPRI | EPOLLERR))) {\n+\t\ttst_res(TFAIL,\n+\t\t\t\"after %s: events %x, expected EPOLLPRI or EPOLLERR\",\n+\t\t\tdesc, ret_ev.events);\n+\t} else {\n+\t\ttst_res(TPASS,\n+\t\t\t\"epoll_wait() reported event after %s\", desc);\n+\t}\n+\n+\t/* Re-read /proc/self/mounts to clear the notification */\n+\tSAFE_LSEEK(mnt_fd, 0, SEEK_SET);\n+\twhile (SAFE_READ(0, mnt_fd, buf, sizeof(buf)) > 0)\n+\t\t;\n+}\n+\n+static void run(void)\n+{\n+\tif (!SAFE_FORK()) {\n+\t\tSAFE_MOUNT(\"none\", MNTPOINT, \"tmpfs\", 0, NULL);\n+\t\tTST_CHECKPOINT_WAKE_AND_WAIT(0);\n+\t\tSAFE_UMOUNT(MNTPOINT);\n+\t\tTST_CHECKPOINT_WAKE(0);\n+\t\texit(0);\n+\t}\n+\n+\tTST_CHECKPOINT_WAIT(0);\n+\tcheck_epoll_event(\"mount\");\n+\n+\tTST_CHECKPOINT_WAKE_AND_WAIT(0);\n+\tcheck_epoll_event(\"umount\");\n+}\n+\n+static void cleanup(void)\n+{\n+\tif (efd != -1)\n+\t\tSAFE_CLOSE(efd);\n+\n+\tif (mnt_fd != -1)\n+\t\tSAFE_CLOSE(mnt_fd);\n+}\n+\n+static struct tst_test test = {\n+\t.test_all = run,\n+\t.setup = setup,\n+\t.cleanup = cleanup,\n+\t.needs_root = 1,\n+\t.forks_child = 1,\n+\t.needs_checkpoints = 1,\n+\t.needs_tmpdir = 1,\n+};\n",
    "prefixes": [
        "5/8"
    ]
}