get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226502,
    "url": "http://patchwork.ozlabs.org/api/1.2/patches/2226502/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/3686615aaecef10c38f6a91f39742412d05bb0f6.1776866921.git.bblock@linux.ibm.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.2/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": "<3686615aaecef10c38f6a91f39742412d05bb0f6.1776866921.git.bblock@linux.ibm.com>",
    "list_archive_url": null,
    "date": "2026-04-22T14:22:11",
    "name": "[v3,1/3] PCI: Move declaration of pci_rescan_remove_lock into public pci.h",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ab79cfd6b8b601fad1ef9c9386237dac6d5d5ce5",
    "submitter": {
        "id": 91674,
        "url": "http://patchwork.ozlabs.org/api/1.2/people/91674/?format=api",
        "name": "Benjamin Block",
        "email": "bblock@linux.ibm.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/3686615aaecef10c38f6a91f39742412d05bb0f6.1776866921.git.bblock@linux.ibm.com/mbox/",
    "series": [
        {
            "id": 501019,
            "url": "http://patchwork.ozlabs.org/api/1.2/series/501019/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=501019",
            "date": "2026-04-22T14:22:11",
            "name": "PCI: s390/pci: Fix deadlocks on s390 when releasing zPCI-bus or -device objects",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/501019/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226502/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226502/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52973-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-pci@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=eECP0Bj4;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-52973-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com\n header.b=\"eECP0Bj4\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=148.163.158.5",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=linux.ibm.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 4g11dd0hQSz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 00:22:29 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 9B6D5302C77A\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 14:22:26 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 40D1E3ED5C5;\n\tWed, 22 Apr 2026 14:22:23 +0000 (UTC)",
            "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 4471030E0C0;\n\tWed, 22 Apr 2026 14:22:20 +0000 (UTC)",
            "from pps.filterd (m0353725.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63M5wtCr2295513;\n\tWed, 22 Apr 2026 14:22:19 GMT",
            "from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dpeu3kmd6-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 22 Apr 2026 14:22:18 +0000 (GMT)",
            "from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma12.dal12v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63MEKIQI003174;\n\tWed, 22 Apr 2026 14:22:17 GMT",
            "from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227])\n\tby ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dpjkxtj7k-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);\n\tWed, 22 Apr 2026 14:22:17 +0000 (GMT)",
            "from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com\n [10.20.54.102])\n\tby smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63MEME2f62325132\n\t(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n\tWed, 22 Apr 2026 14:22:14 GMT",
            "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id 09B292004D;\n\tWed, 22 Apr 2026 14:22:14 +0000 (GMT)",
            "from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1])\n\tby IMSVA (Postfix) with ESMTP id EB38E20040;\n\tWed, 22 Apr 2026 14:22:13 +0000 (GMT)",
            "from p1gen4-pw042f0m (unknown [9.52.223.163])\n\tby smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTPS;\n\tWed, 22 Apr 2026 14:22:13 +0000 (GMT)",
            "from bblock by p1gen4-pw042f0m with local (Exim 4.99.1)\n\t(envelope-from <bblock@linux.ibm.com>)\n\tid 1wFYSz-0000000FrWp-2w75;\n\tWed, 22 Apr 2026 16:22:13 +0200"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776867742; cv=none;\n b=stU2YiWe4R9MqLvcB+3Jx6c5lcN7jzb2Uz5niwsMJ7uB0nMg0+eDLyH/ICAkY619uwfrYaMZwTt4GLtQL0BOpsErqU+FVNu59nAblLAyPkmCMsWUYTJJ9yOXBExy8aI+TvVI3BbsrHCUUXE5EfAVCssCs/Zp/dwwM8YF6ZgwfxY=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776867742; c=relaxed/simple;\n\tbh=AOgrJvt8eAQd3uhRUBWWqieBYQQirzu5sfsd07wnJ0s=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Rj3Nm5Rmdu0hMb/w27jrTUh2V7Tm2koXpi3m7nP0luoqKlaaeV0DNJir76CkvCEXWaxVufFjkpjkAVJd8wHxfK1f5YF6VHrQS2rNEMN6OaOZnVmpT0ivJBElRLuqxWAy4fz7wRfCnVMYdodzi36uLaFLYrH2q3kIjtGaZUz8exI=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=linux.ibm.com;\n spf=pass smtp.mailfrom=linux.ibm.com;\n dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com\n header.b=eECP0Bj4; arc=none smtp.client-ip=148.163.158.5",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n\t:content-transfer-encoding:date:from:in-reply-to:message-id\n\t:mime-version:references:sender:subject:to; s=pp1; bh=/B8iiDzQPv\n\tdivl/buJcKUq4lAcbq+Yp2V/5n/G8nloU=; b=eECP0Bj4e0Euk5POsppJ3fMUXA\n\ty8RFQSStie2S/3LD8b05lcugWAKFFpi0C67u8a5x5qwwa4vWH/hjXauyMyHz4hdI\n\tEHE+4kHy8wQQaV68gGE40475PjA2Xko5WFZ8OGLx44Dph+J6M3y5g3iNOdPABVA5\n\tTd/UC2lx3aSNlDQMVP42i/rFYs/FuaKpftXz6Hd+ZO1en9vdRQO3ONX95JA7/Off\n\tiDbENrJSxtVcHGZRuJvtfVlcQ/9PeYUpCywuwP2ij6oQkwT6O5wHN8V/boIRVOQ0\n\t/NydH+5R4e1MG7B/hNhcV8mxX0Qdb83Jda8/z9PsVsSK1/jxl4tR86ZCIL5w==",
        "From": "Benjamin Block <bblock@linux.ibm.com>",
        "To": "Bjorn Helgaas <bhelgaas@google.com>",
        "Cc": "Ionut Nechita <ionut.nechita@windriver.com>,\n        Tobias Schumacher <ts@linux.ibm.com>,\n        linux-pci <linux-pci@vger.kernel.org>,\n        Gerd Bayer <gbayer@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>,\n        Christian Borntraeger <borntraeger@linux.ibm.com>,\n        Niklas Schnelle <schnelle@linux.ibm.com>,\n        Sven Schnelle <svens@linux.ibm.com>,\n        linux-kernel <linux-kernel@vger.kernel.org>,\n        Ionut Nechita <ionut_n2001@yahoo.com>,\n        Heiko Carstens <hca@linux.ibm.com>, Farhan Ali <alifm@linux.ibm.com>,\n        linux-s390 <linux-s390@vger.kernel.org>,\n        Alexander Gordeev <agordeev@linux.ibm.com>,\n        Andreas Krebbel <krebbel@linux.ibm.com>,\n        Matthew Rosato <mjrosato@linux.ibm.com>,\n        Julian Ruess <julianr@linux.ibm.com>,\n        Benjamin Block <bblock@linux.ibm.com>",
        "Subject": "[PATCH v3 1/3] PCI: Move declaration of pci_rescan_remove_lock into\n public pci.h",
        "Date": "Wed, 22 Apr 2026 16:22:11 +0200",
        "Message-ID": "\n <3686615aaecef10c38f6a91f39742412d05bb0f6.1776866921.git.bblock@linux.ibm.com>",
        "X-Mailer": "git-send-email 2.54.0",
        "In-Reply-To": "<cover.1776866921.git.bblock@linux.ibm.com>",
        "References": "<cover.1776866921.git.bblock@linux.ibm.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-pci@vger.kernel.org",
        "List-Id": "<linux-pci.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Organization": "=?unknown-8bit?q?IBM_Deutschland_Research_=26_Development_GmbH?=\n\t=?unknown-8bit?q?=2C_https=3A//www=2Eibm=2Ecom/privacy=2C_Vors=2E_Aufs=2E-R?=\n\t=?unknown-8bit?q?=2E=3A_Wolfgang_Wendt=2C_Gesch=C3=A4ftsf=C3=BChrung=3A_Dav?=\n\t=?unknown-8bit?q?id_Faller=2E_Sitz_der_Ges=2E=3A_Ehningen=2C_Registergerich?=\n\t=?unknown-8bit?q?t=3A_AmtsG_Stuttgart=2C_HRB_243294?=",
        "Content-Transfer-Encoding": "8bit",
        "Sender": "Benjamin Block <bblock@linux.ibm.com>",
        "X-TM-AS-GCONF": "00",
        "X-Proofpoint-Reinject": "loops=2 maxloops=12",
        "X-Proofpoint-GUID": "g8VGT8nT7JX1-CuTkSOq4kTXeOGBwLF3",
        "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDIyMDEzOCBTYWx0ZWRfX6AGCsAzBkvnn\n bXOglQ7IwtbVBSe/v6Wcq1JPb+vyY6fgQdWnPq5nMccutO9C8QE8sQC8Qc9LanyepwgGhugSa+o\n YybfxEamerwDBJ0S4veCaEIac79fu/F5XQVqhKOkwzeSMMLBhOzytNjZTqbEuF+zqBt6zQOSLh+\n TQtwtGSc6P/fp/aHuX/fKHLvSzzGvTUAuqohrRYhaDh6RHX+oU52oBtqGiskI02Li2E7iZ93Suz\n T6f9+4VzDFxVZylUKozPQ4IUmVsxyfw2LXwe/yVLpQf53RiN8cMq5/LCx4+3htdjw8vA9KnvnBF\n TkCiPS68dc2lPDVdkgz/auyBId7LlaFm95PtW315tKYGH87o40e6n8fMNdKB6tcAdS3jWuFkLo3\n D5VuOlbWMw1XPEd9gpsLQByI5IF68mB1ZUTph6xlLI+fJ46bBKi3EqyUidGp49Ac0GVHeiVmpwh\n fI7yeMlAMWp315OjCoA==",
        "X-Authority-Analysis": "v=2.4 cv=a6kAM0SF c=1 sm=1 tr=0 ts=69e8d99a cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=V8glGbnc2Ofi9Qvn3v5h:22 a=VnNF1IyMAAAA:8 a=vf2HUNMP9xvVswJDcwYA:9",
        "X-Proofpoint-ORIG-GUID": "2ueOtlWB3NuzUbPeaYjju9Pay1TykOVH",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-22_01,2026-04-21_02,2025-10-01_01",
        "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n malwarescore=0 suspectscore=0 spamscore=0 adultscore=0 bulkscore=0\n lowpriorityscore=0 impostorscore=0 clxscore=1015 phishscore=0\n priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604200000\n definitions=main-2604220138"
    },
    "content": "So far it is possible to use and call the functions\npci_lock_rescan_remove() and pci_unlock_rescan_remove() from any PCI\ncode, including modules and architecture code; but the lock variable\n`pci_rescan_remove_lock` itself is private to objects residing in\n`drivers/pci/` via the header `drivers/pci/pci.h`.\n\nThis makes it possible to use the lock - lock it, unlock it - from\nanywhere, but it is not possible to use lockdep annotations such as\nlockdep_assert_held(), or sparse annotations such as __must_hold() in\nmodules or architecture code for PCI to make the usage more safe.\n\nSince it is useful for `pci_rescan_remove_lock` to have such\nannotations, move the variable declaration into `include/linux/pci.h`.\n\nReviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>\nSigned-off-by: Benjamin Block <bblock@linux.ibm.com>\n---\n drivers/pci/pci.h   | 2 --\n drivers/pci/probe.c | 1 +\n include/linux/pci.h | 2 ++\n 3 files changed, 3 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h\nindex 13d998fbacce..6d611523420f 100644\n--- a/drivers/pci/pci.h\n+++ b/drivers/pci/pci.h\n@@ -110,8 +110,6 @@ struct pcie_tlp_log;\n extern const unsigned char pcie_link_speed[];\n extern bool pci_early_dump;\n \n-extern struct mutex pci_rescan_remove_lock;\n-\n bool pcie_cap_has_lnkctl(const struct pci_dev *dev);\n bool pcie_cap_has_lnkctl2(const struct pci_dev *dev);\n bool pcie_cap_has_rtctl(const struct pci_dev *dev);\ndiff --git a/drivers/pci/probe.c b/drivers/pci/probe.c\nindex 850a63c175f0..81a7db71ebc3 100644\n--- a/drivers/pci/probe.c\n+++ b/drivers/pci/probe.c\n@@ -3509,6 +3509,7 @@ EXPORT_SYMBOL_GPL(pci_rescan_bus);\n  * routines should always be executed under this mutex.\n  */\n DEFINE_MUTEX(pci_rescan_remove_lock);\n+EXPORT_SYMBOL_GPL(pci_rescan_remove_lock);\n static const struct task_struct *pci_rescan_remove_owner;\n static unsigned int pci_rescan_remove_depth;\n \ndiff --git a/include/linux/pci.h b/include/linux/pci.h\nindex 1c270f1d5123..fd7a962a64ef 100644\n--- a/include/linux/pci.h\n+++ b/include/linux/pci.h\n@@ -39,6 +39,7 @@\n #include <linux/io.h>\n #include <linux/resource_ext.h>\n #include <linux/msi_api.h>\n+#include <linux/mutex.h>\n #include <uapi/linux/pci.h>\n \n #include <linux/pci_ids.h>\n@@ -1533,6 +1534,7 @@ void set_pcie_hotplug_bridge(struct pci_dev *pdev);\n \n /* Functions for PCI Hotplug drivers to use */\n unsigned int pci_rescan_bus(struct pci_bus *bus);\n+extern struct mutex pci_rescan_remove_lock;\n void pci_lock_rescan_remove(void);\n void pci_unlock_rescan_remove(void);\n \n",
    "prefixes": [
        "v3",
        "1/3"
    ]
}