get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 807624,
    "url": "http://patchwork.ozlabs.org/api/patches/807624/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/glibc/patch/20170830124448.87C7741BE92E8@oldenburg.str.redhat.com/",
    "project": {
        "id": 41,
        "url": "http://patchwork.ozlabs.org/api/projects/41/?format=api",
        "name": "GNU C Library",
        "link_name": "glibc",
        "list_id": "libc-alpha.sourceware.org",
        "list_email": "libc-alpha@sourceware.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170830124448.87C7741BE92E8@oldenburg.str.redhat.com>",
    "list_archive_url": null,
    "date": "2017-08-30T12:44:48",
    "name": "Do not scale NPTL tests with available number of CPUs",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "88badc3aa38f83de36d35922c1214a6dd0b3667e",
    "submitter": {
        "id": 14312,
        "url": "http://patchwork.ozlabs.org/api/people/14312/?format=api",
        "name": "Florian Weimer",
        "email": "fweimer@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/glibc/patch/20170830124448.87C7741BE92E8@oldenburg.str.redhat.com/mbox/",
    "series": [
        {
            "id": 608,
            "url": "http://patchwork.ozlabs.org/api/series/608/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/glibc/list/?series=608",
            "date": "2017-08-30T12:44:48",
            "name": "Do not scale NPTL tests with available number of CPUs",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/608/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/807624/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/807624/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<libc-alpha-return-83861-incoming=patchwork.ozlabs.org@sourceware.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "mailing list libc-alpha@sourceware.org"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=sourceware.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=libc-alpha-return-83861-incoming=patchwork.ozlabs.org@sourceware.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (1024-bit key;\n\tsecure) header.d=sourceware.org header.i=@sourceware.org\n\theader.b=\"uV5C+mUn\"; dkim-atps=neutral",
            "sourceware.org; auth=none",
            "ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tdmarc=none (p=none dis=none) header.from=redhat.com",
            "ext-mx05.extmail.prod.ext.phx2.redhat.com;\n\tspf=fail smtp.mailfrom=fweimer@redhat.com"
        ],
        "Received": [
            "from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj4wC1fNdz9sNn\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 22:44:59 +1000 (AEST)",
            "(qmail 7599 invoked by alias); 30 Aug 2017 12:44:53 -0000",
            "(qmail 6034 invoked by uid 89); 30 Aug 2017 12:44:52 -0000"
        ],
        "DomainKey-Signature": "a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:to:subject:mime-version:content-type\n\t:content-transfer-encoding:message-id:from; q=dns; s=default; b=\n\tcgqGLfm4jWr1rcyXSV0pwS8x50RJ8+tvvNTGKexrQMCsdPAO1ct7aOxxdP/TGVs+\n\tGjb/fSp9flUh31TqxuoJnxSkeAoJPW0Ey/0CQdHs9N+I+QmhUNdsKEO/9W9gmoKY\n\tzV0Ftnf51U+MGVYZY0+YBneSUxdnallQnsf5vOnO1J8=",
        "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id\n\t:list-unsubscribe:list-subscribe:list-archive:list-post\n\t:list-help:sender:date:to:subject:mime-version:content-type\n\t:content-transfer-encoding:message-id:from; s=default; bh=R40XUK\n\tL0aYTxqjaTx9yBjw5vfnc=; b=uV5C+mUn8JSIuPNT9NyLFyJdT7oxpoMs+FdLTe\n\teBs791Dr+FKYGWf8XK26YBrQdGhxlao+FnMTgUQ+xNRjofII0Tci3UfgtiNXJdIU\n\tHOfV91lbRH2dxY9yta770QoLt970ANy4jsk936HVtc9EVjbghGKoaaMlFPewZW6n\n\tJdi0A=",
        "Mailing-List": "contact libc-alpha-help@sourceware.org; run by ezmlm",
        "Precedence": "bulk",
        "List-Id": "<libc-alpha.sourceware.org>",
        "List-Unsubscribe": "<mailto:libc-alpha-unsubscribe-incoming=patchwork.ozlabs.org@sourceware.org>",
        "List-Subscribe": "<mailto:libc-alpha-subscribe@sourceware.org>",
        "List-Archive": "<http://sourceware.org/ml/libc-alpha/>",
        "List-Post": "<mailto:libc-alpha@sourceware.org>",
        "List-Help": "<mailto:libc-alpha-help@sourceware.org>,\n\t<http://sourceware.org/ml/#faqs>",
        "Sender": "libc-alpha-owner@sourceware.org",
        "X-Virus-Found": "No",
        "X-Spam-SWARE-Status": "No, score=-25.9 required=5.0 tests=BAYES_00, GIT_PATCH_0,\n\tGIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,\n\tKAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD,\n\tSPF_HELO_PASS autolearn=ham version=3.3.2 spammy=8211",
        "X-HELO": "mx1.redhat.com",
        "DMARC-Filter": "OpenDMARC Filter v1.3.2 mx1.redhat.com 9844A130C",
        "Date": "Wed, 30 Aug 2017 14:44:48 +0200",
        "To": "libc-alpha@sourceware.org",
        "Subject": "[PATCH] Do not scale NPTL tests with available number of CPUs",
        "User-Agent": "Heirloom mailx 12.5 7/5/10",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=us-ascii",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20170830124448.87C7741BE92E8@oldenburg.str.redhat.com>",
        "From": "fweimer@redhat.com (Florian Weimer)"
    },
    "content": "On very large multi-processor systems, creating hundreds of threads\nruns into a test time out.  The tests do not seem to benefit from\nmassive over-scheduling.\n\n2017-08-30  Florian Weimer  <fweimer@redhat.com>\n\n\tDo not scale NPTL tests with available number of CPUs.\n\t* nptl/tst-cond16.c (count): Sett to constant value of 8.\n\t* nptl/tst-cond18.c (count): Likewise.",
    "diff": "diff --git a/nptl/tst-cond16.c b/nptl/tst-cond16.c\nindex 032677adcc..b3bfb90bd4 100644\n--- a/nptl/tst-cond16.c\n+++ b/nptl/tst-cond16.c\n@@ -28,7 +28,7 @@ pthread_cond_t cv = PTHREAD_COND_INITIALIZER;\n pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;\n bool n, exiting;\n FILE *f;\n-int count;\n+enum { count = 8 };\t\t/* Number of worker threads.  */\n \n void *\n tf (void *dummy)\n@@ -71,11 +71,6 @@ do_test (void)\n       return 1;\n     }\n \n-  count = sysconf (_SC_NPROCESSORS_ONLN);\n-  if (count <= 0)\n-    count = 1;\n-  count *= 4;\n-\n   pthread_t th[count];\n   pthread_attr_t attr;\n   int i, ret, sz;\ndiff --git a/nptl/tst-cond18.c b/nptl/tst-cond18.c\nindex 187f3af1df..6276110ec2 100644\n--- a/nptl/tst-cond18.c\n+++ b/nptl/tst-cond18.c\n@@ -28,7 +28,8 @@\n pthread_cond_t cv = PTHREAD_COND_INITIALIZER;\n pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;\n bool exiting;\n-int fd, count, spins, nn;\n+int fd, spins, nn;\n+enum { count = 8 };\t\t/* Number of worker threads.  */\n \n void *\n tf (void *id)\n@@ -82,11 +83,6 @@ do_test (void)\n       return 1;\n     }\n \n-  count = sysconf (_SC_NPROCESSORS_ONLN);\n-  if (count <= 0)\n-    count = 1;\n-  count *= 8;\n-\n   pthread_t th[count + 1];\n   pthread_attr_t attr;\n   int i, ret, sz;\n",
    "prefixes": []
}