get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 817822,
    "url": "http://patchwork.ozlabs.org/api/patches/817822/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170923192636.3932-7-fw@strlen.de/",
    "project": {
        "id": 7,
        "url": "http://patchwork.ozlabs.org/api/projects/7/?format=api",
        "name": "Linux network development",
        "link_name": "netdev",
        "list_id": "netdev.vger.kernel.org",
        "list_email": "netdev@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170923192636.3932-7-fw@strlen.de>",
    "list_archive_url": null,
    "date": "2017-09-23T19:26:36",
    "name": "[net-next,v3,6/6] rtnetlink: rtnl_have_link_slave_info doesn't need rtnl",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "e4976f2d9409af12e97d5d91de14dccfa4c64e2b",
    "submitter": {
        "id": 1025,
        "url": "http://patchwork.ozlabs.org/api/people/1025/?format=api",
        "name": "Florian Westphal",
        "email": "fw@strlen.de"
    },
    "delegate": {
        "id": 34,
        "url": "http://patchwork.ozlabs.org/api/users/34/?format=api",
        "username": "davem",
        "first_name": "David",
        "last_name": "Miller",
        "email": "davem@davemloft.net"
    },
    "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170923192636.3932-7-fw@strlen.de/mbox/",
    "series": [
        {
            "id": 4777,
            "url": "http://patchwork.ozlabs.org/api/series/4777/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=4777",
            "date": "2017-09-23T19:26:30",
            "name": "rtnetlink: preparation patches for further rtnl lock pushdown/removal",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/4777/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/817822/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/817822/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<netdev-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@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=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y00hg52N6z9t42\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSun, 24 Sep 2017 05:26:43 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751877AbdIWT0l (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSat, 23 Sep 2017 15:26:41 -0400",
            "from Chamillionaire.breakpoint.cc ([146.0.238.67]:46834 \"EHLO\n\tChamillionaire.breakpoint.cc\" rhost-flags-OK-OK-OK-OK)\n\tby vger.kernel.org with ESMTP id S1751409AbdIWT0k (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sat, 23 Sep 2017 15:26:40 -0400",
            "from fw by Chamillionaire.breakpoint.cc with local (Exim 4.84_2)\n\t(envelope-from <fw@breakpoint.cc>)\n\tid 1dvq1E-0002ta-KA; Sat, 23 Sep 2017 21:23:16 +0200"
        ],
        "From": "Florian Westphal <fw@strlen.de>",
        "To": "<netdev@vger.kernel.org>",
        "Cc": "Florian Westphal <fw@strlen.de>",
        "Subject": "[PATCH net-next v3 6/6] rtnetlink: rtnl_have_link_slave_info\n\tdoesn't need rtnl",
        "Date": "Sat, 23 Sep 2017 21:26:36 +0200",
        "Message-Id": "<20170923192636.3932-7-fw@strlen.de>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170923192636.3932-1-fw@strlen.de>",
        "References": "<20170923192636.3932-1-fw@strlen.de>",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.org"
    },
    "content": "it can be switched to rcu.\n\nReviewed-by: David Ahern <dsahern@gmail.com>\nSigned-off-by: Florian Westphal <fw@strlen.de>\n---\n Changes since v2: remove ASSERT_RTNL.\n\n net/core/rtnetlink.c | 10 +++++++---\n 1 file changed, 7 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c\nindex e858a2b48d7e..c69451964a44 100644\n--- a/net/core/rtnetlink.c\n+++ b/net/core/rtnetlink.c\n@@ -522,11 +522,15 @@ static size_t rtnl_link_get_af_size(const struct net_device *dev,\n static bool rtnl_have_link_slave_info(const struct net_device *dev)\n {\n \tstruct net_device *master_dev;\n+\tbool ret = false;\n \n-\tmaster_dev = netdev_master_upper_dev_get((struct net_device *) dev);\n+\trcu_read_lock();\n+\n+\tmaster_dev = netdev_master_upper_dev_get_rcu((struct net_device *)dev);\n \tif (master_dev && master_dev->rtnl_link_ops)\n-\t\treturn true;\n-\treturn false;\n+\t\tret = true;\n+\trcu_read_unlock();\n+\treturn ret;\n }\n \n static int rtnl_link_slave_info_fill(struct sk_buff *skb,\n",
    "prefixes": [
        "net-next",
        "v3",
        "6/6"
    ]
}