From: Wu Bo <wubo40@huawei.com>
To: Damien Le Moal <damien.lemoal@opensource.wdc.com>,
<linux-ide@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <qiuchangqi.qiu@huawei.com>, <wubo40@huawei.com>
Subject: [RFC PATCH] ata: libata-eh: Retry the cmnd when normal complete occurrd after scsi timeout
Date: Wed, 28 Dec 2022 17:36:56 +0800 [thread overview]
Message-ID: <1672220216-46938-1-git-send-email-wubo40@huawei.com> (raw)
From: wubo <wubo40@huawei.com>
Hi,
Now SCSI middle layer EH and normal IO handler can only choose one of them,
after the SCSI command is completed normally after scsi timeout period,
Should this scenario be given a chance to retry?
Signed-off-by: wubo <wubo40@huawei.com>
---
drivers/ata/libata-eh.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 34303ce..8d1856f 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -617,14 +617,8 @@ void ata_scsi_cmd_error_handler(struct Scsi_Host *host, struct ata_port *ap,
qc->flags |= ATA_QCFLAG_FAILED;
nr_timedout++;
}
- } else {
- /* Normal completion occurred after
- * SCSI timeout but before this point.
- * Successfully complete it.
- */
- scmd->retries = scmd->allowed;
+ } else
scsi_eh_finish_cmd(scmd, &ap->eh_done_q);
- }
}
/* If we have timed out qcs. They belong to EH from
--
1.8.3.1
next reply other threads:[~2022-12-28 8:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-28 9:36 Wu Bo [this message]
2022-12-28 17:59 ` [RFC PATCH] ata: libata-eh: Retry the cmnd when normal complete occurrd after scsi timeout Niklas Cassel
2022-12-29 3:17 ` Wu Bo
2022-12-29 9:21 ` Niklas Cassel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1672220216-46938-1-git-send-email-wubo40@huawei.com \
--to=wubo40@huawei.com \
--cc=damien.lemoal@opensource.wdc.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=qiuchangqi.qiu@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox