Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2218888/?format=api
{ "id": 2218888, "url": "http://patchwork.ozlabs.org/api/patches/2218888/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260402011101.676267-1-ipylypiv@google.com/", "project": { "id": 13, "url": "http://patchwork.ozlabs.org/api/projects/13/?format=api", "name": "Linux IDE development", "link_name": "linux-ide", "list_id": "linux-ide.vger.kernel.org", "list_email": "linux-ide@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260402011101.676267-1-ipylypiv@google.com>", "list_archive_url": null, "date": "2026-04-02T01:11:01", "name": "ata: libata-eh: Do not retry reset if the device is gone", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0331e86e725a56471e578bcb64c57c0195147173", "submitter": { "id": 86149, "url": "http://patchwork.ozlabs.org/api/people/86149/?format=api", "name": "Igor Pylypiv", "email": "ipylypiv@google.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ide/patch/20260402011101.676267-1-ipylypiv@google.com/mbox/", "series": [ { "id": 498414, "url": "http://patchwork.ozlabs.org/api/series/498414/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ide/list/?series=498414", "date": "2026-04-02T01:11:01", "name": "ata: libata-eh: Do not retry reset if the device is gone", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498414/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2218888/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2218888/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-ide+bounces-5408-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ide@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=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=cv+gPG9g;\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-ide+bounces-5408-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=\"cv+gPG9g\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.210.202", "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=google.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.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 4fmP200fttz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 02 Apr 2026 12:11:19 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id F413D300C91D\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 2 Apr 2026 01:11:08 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 700EC23A564;\n\tThu, 2 Apr 2026 01:11:08 +0000 (UTC)", "from mail-pf1-f202.google.com (mail-pf1-f202.google.com\n [209.85.210.202])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 5379629B77E\n\tfor <linux-ide@vger.kernel.org>; Thu, 2 Apr 2026 01:11:07 +0000 (UTC)", "by mail-pf1-f202.google.com with SMTP id\n d2e1a72fcca58-82c63f85c84so189270b3a.2\n for <linux-ide@vger.kernel.org>; Wed, 01 Apr 2026 18:11:07 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775092268; cv=none;\n b=JhA0+b3xUm1yqQzhh/Sy4B7L8HH3LEq9qVfkph5Qjkesx4lTWcTb7JjJ6HpHgO7fDS/2gkl5lGkZ9hu8J8mnifX9isQN6ZDStlSIyA9eQuX2JUKCm59WcORpttjijyg0tyHotpqbwRn75ozkNZDblj207LS41wSkPDbogLLq0G4=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775092268; c=relaxed/simple;\n\tbh=LpyxEI2XHeXWT2ODp48J7yCs6+1uKO9aiwq4iFZO5g0=;\n\th=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type;\n b=MCZW5HZlJ90mB+fXfYAJC6fAetl8BXMmxLjz758JbkBgTGVstdqqq/k05H5aYwTvfOFUJjOa7NLwNmO4jSwU73ntR6jvh7s3DLgWe596FK40hmFYqkezf/eeutB+23u3bOJeC4CPjGd2DY8+PT8tG5HfhCo9meVYCu+YJrr1i2A=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=google.com;\n spf=pass smtp.mailfrom=flex--ipylypiv.bounces.google.com;\n dkim=pass (2048-bit key) header.d=google.com header.i=@google.com\n header.b=cv+gPG9g; arc=none smtp.client-ip=209.85.210.202", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1775092266; x=1775697066;\n darn=vger.kernel.org;\n h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject\n :date:message-id:reply-to;\n bh=b5vlh7nRu2VO+uZc0moAtUj0d3hwd9HOdLTCGjwE1js=;\n b=cv+gPG9gLjc7HS8bMRNnnj2vEvTOUBMa83yaqH54whWM9tu4I92cO/+t9lP1bp64Tr\n V+dMwBv4Tg4GMsk4HHCsJe8Pv9NKeVGMTtx+tlReza8xPWHgKxka2WkozJMxfak0J1O6\n qqgLUGRNHRDw9NIRialD0pkVGc9uTAeL739pIGNnKjY+8klqhqTrdTUAlMLvReaF21ZK\n UgV+paBXutj8gFhxjdQyoBLxxUiyZXXDxFVwinAXAtF3sLYwI9lD/NrzCF9K1jw4cq61\n h0pf23vHa1i4zyQN4QPv+XV4/FtjfLFka0mQbeYTiCEHlTr49MC8uHqyC8bTLA0fpKTI\n S9Lg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775092266; x=1775697066;\n h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=b5vlh7nRu2VO+uZc0moAtUj0d3hwd9HOdLTCGjwE1js=;\n b=j5H408rZ82TIr/324HJ6Dr1AgUvPabFQLTltoDl6CMNvFKSD7Hyx5VTYkEk2pRkqhr\n tI3WjSc99zZIzBJvTPVCmyjzvpKmLhleD7+xVYZ+fdf6vL0Lg4oKkn03LlMHKN3zNiZX\n xrPxDgHBQ5ljmFDr+5cNcN5fN5YoLrCgQB4yOQj55eqbCSoq/eQ8mVirm7vO86p57Q+I\n aBKotOTZlHmjgyKsKtlp8ugy7nBhg2vLdaDShnlc5Y9P46NoCI8pTmBlGjB6SM0wSVlL\n didCZGcZJZe1dqMkZ+xPI+ty5bnTGAsCsncAW5SC6STTyhQwDVG4ffGb2SZveAD4vJRv\n u9rg==", "X-Gm-Message-State": "AOJu0YyHnOteG+UPq5dTuvGyf4XpVb1Ln5ZzAlCbosk4ssM6zvVXhMxk\n\t6uRuWhWycZHzWX0VDOzZGQVZj1ObZg2qXCy+qSRsP38CUmnqVHR7YpE3s1WdgEtAX53g4En7qU+\n\t9ovygbF/cPWMC6g==", "X-Received": "from pfdf3.prod.google.com ([2002:aa7:8b03:0:b0:82c:20b9:f6a6])\n (user=ipylypiv job=prod-delivery.src-stubby-dispatcher) by\n 2002:a05:6a00:94c9:b0:82a:6d3d:9ba1 with SMTP id\n d2e1a72fcca58-82ce8909407mr5994631b3a.24.1775092266394;\n Wed, 01 Apr 2026 18:11:06 -0700 (PDT)", "Date": "Wed, 1 Apr 2026 18:11:01 -0700", "Precedence": "bulk", "X-Mailing-List": "linux-ide@vger.kernel.org", "List-Id": "<linux-ide.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ide+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ide+unsubscribe@vger.kernel.org>", "Mime-Version": "1.0", "X-Mailer": "git-send-email 2.53.0.1185.g05d4b7b318-goog", "Message-ID": "<20260402011101.676267-1-ipylypiv@google.com>", "Subject": "[PATCH] ata: libata-eh: Do not retry reset if the device is gone", "From": "Igor Pylypiv <ipylypiv@google.com>", "To": "Damien Le Moal <dlemoal@kernel.org>, Niklas Cassel <cassel@kernel.org>", "Cc": "linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,\n\tIgor Pylypiv <ipylypiv@google.com>", "Content-Type": "text/plain; charset=\"UTF-8\"" }, "content": "If a device is hot-unplugged or otherwise disappears during error handling,\nata_eh_reset() may fail with -ENODEV. Currently, the error handler will\ncontinue to retry the reset operation up to max_tries times.\n\nPrevent unnecessary reset retries by exiting the loop early when\nata_eh_reset() returns -ENODEV.\n\nSigned-off-by: Igor Pylypiv <ipylypiv@google.com>\n---\n drivers/ata/libata-eh.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c\nindex 23be85418b3b..e97a842005e9 100644\n--- a/drivers/ata/libata-eh.c\n+++ b/drivers/ata/libata-eh.c\n@@ -3171,7 +3171,7 @@ int ata_eh_reset(struct ata_link *link, int classify,\n \t sata_scr_read(link, SCR_STATUS, &sstatus))\n \t\trc = -ERESTART;\n \n-\tif (try >= max_tries) {\n+\tif (try >= max_tries || rc == -ENODEV) {\n \t\t/*\n \t\t * Thaw host port even if reset failed, so that the port\n \t\t * can be retried on the next phy event. This risks\n", "prefixes": [] }