get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 971350,
    "url": "http://patchwork.ozlabs.org/api/patches/971350/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20180918235702.26573-4-keith.busch@intel.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api",
        "name": "Linux PCI development",
        "link_name": "linux-pci",
        "list_id": "linux-pci.vger.kernel.org",
        "list_email": "linux-pci@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20180918235702.26573-4-keith.busch@intel.com>",
    "list_archive_url": null,
    "date": "2018-09-18T23:56:55",
    "name": "[PATCHv3,03/10] PCI/AER: Take reference on error devices",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "66b8e450bc9d16872758f156fd42f4bd5c03d1e3",
    "submitter": {
        "id": 19950,
        "url": "http://patchwork.ozlabs.org/api/people/19950/?format=api",
        "name": "Keith Busch",
        "email": "keith.busch@intel.com"
    },
    "delegate": {
        "id": 6763,
        "url": "http://patchwork.ozlabs.org/api/users/6763/?format=api",
        "username": "bhelgaas",
        "first_name": "Bjorn",
        "last_name": "Helgaas",
        "email": "bhelgaas@google.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20180918235702.26573-4-keith.busch@intel.com/mbox/",
    "series": [
        {
            "id": 66288,
            "url": "http://patchwork.ozlabs.org/api/series/66288/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=66288",
            "date": "2018-09-18T23:56:52",
            "name": "PCI error handling",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/66288/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/971350/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/971350/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-pci-owner@vger.kernel.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 42FKcj4hjhz9sCS\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 19 Sep 2018 09:55:33 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1730657AbeISFab (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 19 Sep 2018 01:30:31 -0400",
            "from mga02.intel.com ([134.134.136.20]:47633 \"EHLO mga02.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1730633AbeISFab (ORCPT <rfc822;linux-pci@vger.kernel.org>);\n\tWed, 19 Sep 2018 01:30:31 -0400",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Sep 2018 16:55:30 -0700",
            "from unknown (HELO localhost.lm.intel.com) ([10.232.112.44])\n\tby orsmga008.jf.intel.com with ESMTP; 18 Sep 2018 16:55:29 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.53,391,1531810800\"; d=\"scan'208\";a=\"74357520\"",
        "From": "Keith Busch <keith.busch@intel.com>",
        "To": "Linux PCI <linux-pci@vger.kernel.org>,\n\tBjorn Helgaas <bhelgaas@google.com>",
        "Cc": "Benjamin Herrenschmidt <benh@kernel.crashing.org>,\n\tSinan Kaya <okaya@kernel.org>,\n\tThomas Tai <thomas.tai@oracle.com>, poza@codeaurora.org,\n\tLukas Wunner <lukas@wunner.de>, Christoph Hellwig <hch@lst.de>,\n\tMika Westerberg <mika.westerberg@linux.intel.com>,\n\tKeith Busch <keith.busch@intel.com>",
        "Subject": "[PATCHv3 03/10] PCI/AER: Take reference on error devices",
        "Date": "Tue, 18 Sep 2018 17:56:55 -0600",
        "Message-Id": "<20180918235702.26573-4-keith.busch@intel.com>",
        "X-Mailer": "git-send-email 2.13.6",
        "In-Reply-To": "<20180918235702.26573-1-keith.busch@intel.com>",
        "References": "<20180918235702.26573-1-keith.busch@intel.com>",
        "Sender": "linux-pci-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-pci.vger.kernel.org>",
        "X-Mailing-List": "linux-pci@vger.kernel.org"
    },
    "content": "Error handling may be running in parallel with a hot removal. This patch\nreference counts the devices AER handling tracks so the device can not\nbe freed while AER wants to reference it.\n\nSigned-off-by: Keith Busch <keith.busch@intel.com>\n---\n drivers/pci/pcie/aer.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c\nindex 1d2159409b01..35a0194e5b96 100644\n--- a/drivers/pci/pcie/aer.c\n+++ b/drivers/pci/pcie/aer.c\n@@ -866,7 +866,7 @@ void cper_print_aer(struct pci_dev *dev, int aer_severity,\n static int add_error_device(struct aer_err_info *e_info, struct pci_dev *dev)\n {\n \tif (e_info->error_dev_num < AER_MAX_MULTI_ERR_DEVICES) {\n-\t\te_info->dev[e_info->error_dev_num] = dev;\n+\t\te_info->dev[e_info->error_dev_num] = pci_dev_get(dev);\n \t\te_info->error_dev_num++;\n \t\treturn 0;\n \t}\n@@ -1013,6 +1013,7 @@ static void handle_error_source(struct pci_dev *dev, struct aer_err_info *info)\n \t\tpcie_do_nonfatal_recovery(dev);\n \telse if (info->severity == AER_FATAL)\n \t\tpcie_do_fatal_recovery(dev, PCIE_PORT_SERVICE_AER);\n+\tpci_dev_put(dev);\n }\n \n #ifdef CONFIG_ACPI_APEI_PCIEAER\n",
    "prefixes": [
        "PATCHv3",
        "03/10"
    ]
}