get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2220599,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220599/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260407153532.6395-6-djeffery@redhat.com/",
    "project": {
        "id": 28,
        "url": "http://patchwork.ozlabs.org/api/1.1/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
    },
    "msgid": "<20260407153532.6395-6-djeffery@redhat.com>",
    "date": "2026-04-07T15:35:32",
    "name": "[5/5] scsi: enable async shutdown support",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "5af36c503cfeed48d2c99eb877b4f899cd9212ff",
    "submitter": {
        "id": 24471,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/24471/?format=api",
        "name": "David Jeffery",
        "email": "djeffery@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260407153532.6395-6-djeffery@redhat.com/mbox/",
    "series": [
        {
            "id": 498998,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/498998/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=498998",
            "date": "2026-04-07T15:35:27",
            "name": "shut down devices asynchronously",
            "version": 13,
            "mbox": "http://patchwork.ozlabs.org/series/498998/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2220599/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2220599/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "\n <linux-pci+bounces-52085-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 (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=L3p8hNcD;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-pci+bounces-52085-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=\"L3p8hNcD\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=170.10.133.124",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=redhat.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqr8q5nZPz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 08 Apr 2026 01:44:11 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id A10B8313877D\n\tfor <incoming@patchwork.ozlabs.org>; Tue,  7 Apr 2026 15:37:25 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 8E1DB3BED1E;\n\tTue,  7 Apr 2026 15:36:31 +0000 (UTC)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\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 D1BAB3C3423\n\tfor <linux-pci@vger.kernel.org>; Tue,  7 Apr 2026 15:36:20 +0000 (UTC)",
            "from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-542-i3a9Ot2dP1qh06s5bqKUUw-1; Tue,\n 07 Apr 2026 11:36:13 -0400",
            "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id EDCEE195608C;\n\tTue,  7 Apr 2026 15:36:10 +0000 (UTC)",
            "from fedora-work.redhat.com (unknown [10.22.80.127])\n\tby mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id D1C3D1800594;\n\tTue,  7 Apr 2026 15:36:06 +0000 (UTC)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775576189; cv=none;\n b=CEeLALs3EhfVPh4vO5WGhg9W0LdkQshZBJcAaFt3fVpq55hyNmCKKlcilEoQ0Ukwo+Gcs1DePHMhAvUn2f1hC/Cbm01mYNKx7bDIeqAp9GTUbOF2/4ZBZvAIIhtUUmlVnzCnPO5XB+tYseu5Rx/XUylQZPuxTJ4Ap4n7nSZRqyA=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775576189; c=relaxed/simple;\n\tbh=hX445ynibnXiIWMEjocw1AVTzkgY1FNORC7rREkeDJw=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=dlGRW7cd5jRNpEwLLx2wqaonw65LbC34YYGkGG/4dgolNhch752dHvHEjnjrsdFnUaB+Ek8UOJJ4k3Xaj2oCBz+EtacGGSnjAJLjNIRoTyI4DdD/V1+AYAnvnI/usp6SAwmEeG+QFdPce1MWP3xqJDHGzCAPKjkPRuvI/GFg7pE=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=redhat.com;\n spf=pass smtp.mailfrom=redhat.com;\n dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com\n header.b=L3p8hNcD; arc=none smtp.client-ip=170.10.133.124",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1775576176;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=BQUsDl+61brgBW+bmtwfnTQiS3JcRbzE4Uc2abCpuBs=;\n\tb=L3p8hNcDjunEEeyhkIHm8WyBL+mBHp2d2gOgdVC+gAJo+f2hVbwyL0dhaIsft315wxUpVG\n\tVLS7ieRqq5XPJ04zF/9CsUtzXv/MlLagVlV8MVPR/kK2tKNwgtwYoFLG+AQZB8eUg2LpSW\n\tS+Wjb81alMllKorWGww2aFXU27A169E=",
        "X-MC-Unique": "i3a9Ot2dP1qh06s5bqKUUw-1",
        "X-Mimecast-MFC-AGG-ID": "i3a9Ot2dP1qh06s5bqKUUw_1775576171",
        "From": "David Jeffery <djeffery@redhat.com>",
        "To": "linux-kernel@vger.kernel.org,\n\tdriver-core@lists.linux.dev,\n\tlinux-pci@vger.kernel.org,\n\tlinux-scsi@vger.kernel.org,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\t\"Rafael J. Wysocki\" <rafael@kernel.org>,\n\tDanilo Krummrich <dakr@kernel.org>",
        "Cc": "Tarun Sahu <tarunsahu@google.com>, Pasha Tatashin <tatashin@google.com>,\n\t=?utf-8?b?TWljaGHFgiBDxYJhcGnFhHNraQ==?= <mclapinski@google.com>,\n Jordan Richards <jordanrichards@google.com>, Ewan Milne <emilne@redhat.com>,\n John Meneghini <jmeneghi@redhat.com>, \"Lombardi,\n Maurizio\" <mlombard@redhat.com>, Stuart Hayes <stuart.w.hayes@gmail.com>,\n Laurence Oberman <loberman@redhat.com>, Bart Van Assche <bvanassche@acm.org>,\n Bjorn Helgaas <helgaas@kernel.org>,\n \"Martin K . Petersen\" <martin.petersen@oracle.com>,\n David Jeffery <djeffery@redhat.com>",
        "Subject": "[PATCH 5/5] scsi: enable async shutdown support",
        "Date": "Tue,  7 Apr 2026 11:35:32 -0400",
        "Message-ID": "<20260407153532.6395-6-djeffery@redhat.com>",
        "In-Reply-To": "<20260407153532.6395-1-djeffery@redhat.com>",
        "References": "<20260407153532.6395-1-djeffery@redhat.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",
        "Content-Transfer-Encoding": "8bit",
        "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111"
    },
    "content": "Like scsi's async suspend support, allow scsi devices to be shut down\nasynchronously to reduce system shutdown time.\n\nSigned-off-by: David Jeffery <djeffery@redhat.com>\nSigned-off-by: Stuart Hayes <stuart.w.hayes@gmail.com>\nTested-by: Laurence Oberman <loberman@redhat.com>\nReviewed-by: Martin K. Petersen <martin.petersen@oracle.com>\n---\n drivers/scsi/hosts.c      | 3 +++\n drivers/scsi/scsi_scan.c  | 1 +\n drivers/scsi/scsi_sysfs.c | 4 ++++\n 3 files changed, 8 insertions(+)",
    "diff": "diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c\nindex e047747d4ecf..dfb38a82c0bf 100644\n--- a/drivers/scsi/hosts.c\n+++ b/drivers/scsi/hosts.c\n@@ -273,6 +273,7 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,\n \tpm_runtime_set_active(&shost->shost_gendev);\n \tpm_runtime_enable(&shost->shost_gendev);\n \tdevice_enable_async_suspend(&shost->shost_gendev);\n+\tdevice_enable_async_shutdown(&shost->shost_gendev);\n \n \terror = device_add(&shost->shost_gendev);\n \tif (error)\n@@ -282,6 +283,7 @@ int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev,\n \tget_device(shost->shost_gendev.parent);\n \n \tdevice_enable_async_suspend(&shost->shost_dev);\n+\tdevice_enable_async_shutdown(&shost->shost_dev);\n \n \tget_device(&shost->shost_gendev);\n \terror = device_add(&shost->shost_dev);\n@@ -519,6 +521,7 @@ struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *sht, int priv\n \tshost->shost_gendev.bus = &scsi_bus_type;\n \tshost->shost_gendev.type = &scsi_host_type;\n \tscsi_enable_async_suspend(&shost->shost_gendev);\n+\tdevice_enable_async_shutdown(&shost->shost_gendev);\n \n \tdevice_initialize(&shost->shost_dev);\n \tshost->shost_dev.parent = &shost->shost_gendev;\ndiff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c\nindex 7b11bc7de0e3..72f30db8609a 100644\n--- a/drivers/scsi/scsi_scan.c\n+++ b/drivers/scsi/scsi_scan.c\n@@ -515,6 +515,7 @@ static struct scsi_target *scsi_alloc_target(struct device *parent,\n \tdev->bus = &scsi_bus_type;\n \tdev->type = &scsi_target_type;\n \tscsi_enable_async_suspend(dev);\n+\tdevice_enable_async_shutdown(dev);\n \tstarget->id = id;\n \tstarget->channel = channel;\n \tstarget->can_queue = 0;\ndiff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c\nindex 6b8c5c05f294..c76ba17b206f 100644\n--- a/drivers/scsi/scsi_sysfs.c\n+++ b/drivers/scsi/scsi_sysfs.c\n@@ -1370,6 +1370,7 @@ static int scsi_target_add(struct scsi_target *starget)\n \tpm_runtime_set_active(&starget->dev);\n \tpm_runtime_enable(&starget->dev);\n \tdevice_enable_async_suspend(&starget->dev);\n+\tdevice_enable_async_shutdown(&starget->dev);\n \n \treturn 0;\n }\n@@ -1396,6 +1397,7 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)\n \ttransport_configure_device(&starget->dev);\n \n \tdevice_enable_async_suspend(&sdev->sdev_gendev);\n+\tdevice_enable_async_shutdown(&sdev->sdev_gendev);\n \tscsi_autopm_get_target(starget);\n \tpm_runtime_set_active(&sdev->sdev_gendev);\n \tif (!sdev->rpm_autosuspend)\n@@ -1415,6 +1417,7 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)\n \t}\n \n \tdevice_enable_async_suspend(&sdev->sdev_dev);\n+\tdevice_enable_async_shutdown(&sdev->sdev_dev);\n \terror = device_add(&sdev->sdev_dev);\n \tif (error) {\n \t\tsdev_printk(KERN_INFO, sdev,\n@@ -1670,6 +1673,7 @@ void scsi_sysfs_device_initialize(struct scsi_device *sdev)\n \tsdev->sdev_gendev.bus = &scsi_bus_type;\n \tsdev->sdev_gendev.type = &scsi_dev_type;\n \tscsi_enable_async_suspend(&sdev->sdev_gendev);\n+\tdevice_enable_async_shutdown(&sdev->sdev_gendev);\n \tdev_set_name(&sdev->sdev_gendev, \"%d:%d:%d:%llu\",\n \t\t     sdev->host->host_no, sdev->channel, sdev->id, sdev->lun);\n \tsdev->sdev_gendev.groups = hostt->sdev_groups;\n",
    "prefixes": [
        "5/5"
    ]
}