Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2226503/?format=api
{ "id": 2226503, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2226503/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/a20d6541e72625a3e244a737a7c94e59a7193859.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": "<a20d6541e72625a3e244a737a7c94e59a7193859.1776866921.git.bblock@linux.ibm.com>", "list_archive_url": null, "date": "2026-04-22T14:22:12", "name": "[v3,2/3] PCI: Provide lock guard for pci_rescan_remove_lock", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "b9d059fcd4a371e1c21b4909c8c713a9d0327488", "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/a20d6541e72625a3e244a737a7c94e59a7193859.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/2226503/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226503/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-52974-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=CETo7I6k;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-pci+bounces-52974-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=\"CETo7I6k\"", "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 sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::12fc:5321])\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 4g11dn3NkTz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 00:22:37 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id A93183013FC6\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 14:22:28 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8A61927467F;\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 4203B30BF4F;\n\tWed, 22 Apr 2026 14:22:20 +0000 (UTC)", "from pps.filterd (m0360072.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63MCrg7s177010;\n\tWed, 22 Apr 2026 14:22:19 GMT", "from ppma11.dal12v.mail.ibm.com\n (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219])\n\tby mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dpeu6bnat-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 (ppma11.dal12v.mail.ibm.com [127.0.0.1])\n\tby ppma11.dal12v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63MEKSwo021343;\n\tWed, 22 Apr 2026 14:22:17 GMT", "from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227])\n\tby ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dpjkxtj8v-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 63MEMEuL62062882\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 0CF422004E;\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 EF20D20043;\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-0000000FrWw-36Zr;\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=nHOUU0T/16DJam4cBx9/E7k0Rsasik0nf25/HwZMKvA0vpq/MM2iwxgTC32l7ET7Tv3Llqs844gapmJirPTm6K7o52J3P7szjEjvwvB30kB5oXf2VrMXlssncc+YhQPzrkIACW26d/m5gs3DtRwjtfniN50f7c3YxZ6ULo2xQk4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776867742; c=relaxed/simple;\n\tbh=6C0btdHehmcdBHpQXETgyuRBlAldDb54Mofy35XMiNw=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=K9/GUlaRjsuahUzfZb/55kimhh5o34XKdwEuxSK0/rL2j5MMAMoMJEP9NVwWsV8fMwOZm9rLccghx9xDdAt8eJkPwvV025tqxxfnmMMdSqPPhyU/IFUTbDC/oDWihkivZw9eTiQ41eXY0HvWj2PGWn7eaKXk+DlqAFax7mNnSwk=", "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=CETo7I6k; 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=U7PquSzLk0\n\t46oRsJNtAhBNjD2BGpHFpbkUiQcZTx0Ng=; b=CETo7I6knvkCXhV02KOYyPlPL5\n\tOISZ3x6WJErR8YmaK53E6R4tn0IPHeF7NKrgUlS0hWDzGkqIVPK2H3SUOLx6ZiRV\n\t5NAs8gfWi8eQ7H/6+BLMP7Z0JbbTOTLll7k17x/qOWT4ciK7NsA6E1cuN3zRsiGi\n\tlg7w3VLbCmTL/DIHrW8WoYYOkgQ17WhcrOXheQ5aANkZUWVDh8qsGH+k59oklAQ3\n\taWzhBw11m0xJ0MZuDA48ilVPLfdyGNWq6IBcrsAq9VksTK3GpWiVlCg7SigEwcTf\n\tcotl8alUCqjG7jc1nmcgB68AsJJLklSMkHiVdzXBKgCzzD1leeocstK7PaNA==", "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 2/3] PCI: Provide lock guard for pci_rescan_remove_lock", "Date": "Wed, 22 Apr 2026 16:22:12 +0200", "Message-ID": "\n <a20d6541e72625a3e244a737a7c94e59a7193859.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-Spam-Details-Enc": "AW1haW4tMjYwNDIyMDEzOCBTYWx0ZWRfX1dho74nZVb5+\n 0bKnBhzO2PiQKaCe9g02REXc6wLVEzpEL/g2tV00Owaq2uQMViOa9Gw38fm8rF95g6d7TDX7Fjy\n TziXqmQPu7MmqsYw+3BgLgv7DY59hLT9ngPXs5m2XZDRXy+5ksUyzgPttoPdnUVAaxE7Q3W2eKs\n hnzqARONizbPNFpQkPGXbpOLFFCWu3DqiH61WbhD7VV6LrW+cYCC2B8r9GEwd2dDYzRTIkQawoV\n A+JTBwtgCD3ou7GR9yyaJ8TUQ4pmBDX85l/jSG2e+P9J0HNki1bvGPvwa44uuF4GNNUKf/e6S8M\n Iz1Oja2ETgtEbbCeMEwVcuga9zqhIGLt1b2uFZ3YUAHnKvoI+LvwCdKP0YT+TzkJXtIzfm9GeJ0\n 2ZKWxMbmAswAWH6jKZ5W6AI103scTi7X16CTCLzFde+hfI4Aqu3Fvd5xZ68pB+opnUv6Swy+zm+\n ZhN3p6w86HdFRYyeBPA==", "X-Proofpoint-ORIG-GUID": "kyxKZNpbTLuGkc8Vq0XRm2DUdcC-dJ1f", "X-Proofpoint-GUID": "ZshJOuVGDdKPQJBPIJu-98Le92IiQCEv", "X-Authority-Analysis": "v=2.4 cv=BYfoFLt2 c=1 sm=1 tr=0 ts=69e8d99a cx=c_pps\n a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=RzCfie-kr_QcCd8fBx8p:22 a=VnNF1IyMAAAA:8 a=qAR2Z3AMSIpdRBh0OscA:9", "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 priorityscore=1501 impostorscore=0 malwarescore=0 suspectscore=0\n lowpriorityscore=0 adultscore=0 spamscore=0 clxscore=1015 bulkscore=0\n phishscore=0 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": "Make it possible to use guard() or scoped_guard() to lock, and\nautomatically unlock `pci_rescan_remove_lock`.\n\nSince the actual mutex `pci_rescan_remove_lock` is always supposed to be\ntaken and released using the functions pci_lock_rescan_remove() and\npci_unlock_rescan_remove() it is not possible to simply use the already\nexisting guards for `struct mutex`. Instead define a new guard\n`pci_rescan_remove` that will also call the functions in question, but\nis usable via guard() or scoped_guard().\n\nReviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>\nSigned-off-by: Benjamin Block <bblock@linux.ibm.com>\n---\n include/linux/pci.h | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/include/linux/pci.h b/include/linux/pci.h\nindex fd7a962a64ef..4c41b5a2c90a 100644\n--- a/include/linux/pci.h\n+++ b/include/linux/pci.h\n@@ -41,6 +41,7 @@\n #include <linux/msi_api.h>\n #include <linux/mutex.h>\n #include <uapi/linux/pci.h>\n+#include <linux/cleanup.h>\n \n #include <linux/pci_ids.h>\n \n@@ -1537,6 +1538,8 @@ 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+DEFINE_LOCK_GUARD_0(pci_rescan_remove, pci_lock_rescan_remove(),\n+\t\t pci_unlock_rescan_remove());\n \n /* Vital Product Data routines */\n ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf);\n", "prefixes": [ "v3", "2/3" ] }