get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2219016,
    "url": "http://patchwork.ozlabs.org/api/patches/2219016/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260402095804.137387-1-vasileios.almpanis@virtuozzo.com/",
    "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": "<20260402095804.137387-1-vasileios.almpanis@virtuozzo.com>",
    "list_archive_url": null,
    "date": "2026-04-02T09:57:39",
    "name": "[v2,1/1] lib: scale checkpoint wait/wake timeouts with tst_multiply_timeout()",
    "commit_ref": null,
    "pull_url": null,
    "state": "needs-review-ack",
    "archived": false,
    "hash": "b3a6a6232b326f00b7e318cf6b15f5f40c4d75e9",
    "submitter": {
        "id": 92306,
        "url": "http://patchwork.ozlabs.org/api/people/92306/?format=api",
        "name": "Vasileios Almpanis",
        "email": "vasileios.almpanis@virtuozzo.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260402095804.137387-1-vasileios.almpanis@virtuozzo.com/mbox/",
    "series": [
        {
            "id": 498463,
            "url": "http://patchwork.ozlabs.org/api/series/498463/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=498463",
            "date": "2026-04-02T09:57:39",
            "name": "[v2,1/1] lib: scale checkpoint wait/wake timeouts with tst_multiply_timeout()",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/498463/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2219016/comments/",
    "check": "success",
    "checks": "http://patchwork.ozlabs.org/api/patches/2219016/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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=c0PDmANe;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=virtuozzo.com header.i=@virtuozzo.com header.a=rsa-sha256\n header.s=relay header.b=J/nG90yq;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)"
        ],
        "Received": [
            "from picard.linux.it (picard.linux.it [213.254.12.146])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fmck031m0z1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 20:58:15 +1100 (AEDT)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id E4CC83E220F\n\tfor <incoming@patchwork.ozlabs.org>; Thu,  2 Apr 2026 11:58:12 +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 98B023E1BFA\n for <ltp@lists.linux.it>; Thu,  2 Apr 2026 11:58:09 +0200 (CEST)",
            "from relay.virtuozzo.com (relay.virtuozzo.com [130.117.225.111])\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 12ACD1A010F8\n for <ltp@lists.linux.it>; Thu,  2 Apr 2026 11:58:08 +0200 (CEST)",
            "from [130.117.225.5] (helo=dev010.aci.vzint.dev)\n by relay.virtuozzo.com with esmtp (Exim 4.96)\n (envelope-from <vasileios.almpanis@virtuozzo.com>)\n id 1w8EmG-00EB3T-0i; Thu, 02 Apr 2026 11:58:04 +0200"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1775123892; h=to : date :\n message-id : in-reply-to : references : mime-version : subject :\n list-id : list-unsubscribe : list-archive : list-post : list-help :\n list-subscribe : from : reply-to : content-type :\n content-transfer-encoding : sender : from;\n bh=qT3qd/TaK9R+sYLNxDXbcCtF6Fz+Xb+skRsL3FMM7zU=;\n b=c0PDmANee6UdZ5NioSZjOpY/8T9W6k4AMfPPQCUYzm+NtLYyrPrd3kMwFhbPqbDX+YLH8\n dmtV5ixTH3Lvt9ubmAq/WGtRdorR2VT2p2gBN8OYB7bLV/ELwaF5WpmxrIhI8MYMLayF5jN\n u7fOi8YmEqQYNjkFgIoMh0gLoS59QyM=",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From:\n Content-Type; bh=/kMLdKsD2PwCg7Ty7tf6PZ0EVGKa5yHMAevqsKDPRZo=; b=J/nG90yq2XQM\n 06geP/vut4XlrtkTieJUh+k6S1/0pPHeFGvWh9iJmU92vMmeSwKWe674LjpuBrfbxZy3XQLBmrja4\n nQZK7Cegl4KLv0gfFvs3OO0vlCgsRq6lADkOekpG3vhh1ut9n6k7bNaWpRTqvxKdJ8cM2E2G21uLl\n BfwFkAbHLpFkba532xNurwDbdnw2cUibvkdKEH9WeI7N08Ywq43ImCPLYfOFfXt+xVM4/jcvzLCIJ\n qjf6OwSAFoRawyT3U2wuljkZoeam34D4mj1XcD9NP8ERtInPnE6ulP7mGh+DERqiauAwTGDjz9jl1\n NZDlOy6o6OA6LPBnRMJ3/A==;"
        ],
        "To": "ltp@lists.linux.it",
        "Date": "Thu,  2 Apr 2026 09:57:39 +0000",
        "Message-ID": "<20260402095804.137387-1-vasileios.almpanis@virtuozzo.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20260330102909.863484-2-vasileios.almpanis@virtuozzo.com>",
        "References": "<20260330102909.863484-2-vasileios.almpanis@virtuozzo.com>",
        "MIME-Version": "1.0",
        "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 v2 1/1] lib: scale checkpoint wait/wake timeouts with\n tst_multiply_timeout()",
        "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>",
        "From": "Vasileios Almpanis via ltp <ltp@lists.linux.it>",
        "Reply-To": "Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>",
        "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": "Apply tst_multiply_timeout() to millisecond timeouts in\ntst_checkpoint_wait() and tst_checkpoint_wake() so checkpoint\ndelays respect LTP_TIMEOUT_MUL and slow-kernel scaling, consistent\nwith other LTP timeouts.\n\nDeclare tst_multiply_timeout() in this file instead of including\ntst_test.h, which conflicts with the legacy test.h include used by\nlibltp.\n\nv2:\n- Dropped second patch of the series and applied tst_multiply_timeout\n  directly in the checkpoint library to hide it from the tests.\n- Reverted extra timeout argument from tst_checkpoint_wake.\n- Dropped new defines with timeout\n- Added tst_multiply_timeout inside tst_checkpoint_{wait/wake}\n\nSigned-off-by: Vasileios Almpanis <vasileios.almpanis@virtuozzo.com>\n---\n lib/tst_checkpoint.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/lib/tst_checkpoint.c b/lib/tst_checkpoint.c\nindex f2faf6563..33db08380 100644\n--- a/lib/tst_checkpoint.c\n+++ b/lib/tst_checkpoint.c\n@@ -15,6 +15,8 @@\n \n #define DEFAULT_MSEC_TIMEOUT 10000\n \n+unsigned int tst_multiply_timeout(unsigned int timeout);\n+\n /*\n  * Global futex array and size for checkpoint synchronization.\n  *\n@@ -37,6 +39,8 @@ int tst_checkpoint_wait(unsigned int id, unsigned int msec_timeout)\n \t\treturn -1;\n \t}\n \n+\tmsec_timeout = tst_multiply_timeout(msec_timeout);\n+\n \ttimeout.tv_sec = msec_timeout/1000;\n \ttimeout.tv_nsec = (msec_timeout%1000) * 1000000;\n \n@@ -61,6 +65,8 @@ int tst_checkpoint_wake(unsigned int id, unsigned int nr_wake,\n \t\treturn -1;\n \t}\n \n+\tmsec_timeout = tst_multiply_timeout(msec_timeout);\n+\n \tfor (;;) {\n \t\twaked += syscall(SYS_futex, &tst_futexes[id], FUTEX_WAKE,\n \t\t\t\t INT_MAX, NULL);\n",
    "prefixes": [
        "v2",
        "1/1"
    ]
}