public inbox for linux-ide@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] ata: libata-eh: Retry the cmnd when normal complete occurrd after scsi timeout
@ 2022-12-28  9:36 Wu Bo
  2022-12-28 17:59 ` Niklas Cassel
  0 siblings, 1 reply; 4+ messages in thread
From: Wu Bo @ 2022-12-28  9:36 UTC (permalink / raw)
  To: Damien Le Moal, linux-ide, linux-kernel; +Cc: qiuchangqi.qiu, wubo40

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-12-29  9:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-28  9:36 [RFC PATCH] ata: libata-eh: Retry the cmnd when normal complete occurrd after scsi timeout Wu Bo
2022-12-28 17:59 ` Niklas Cassel
2022-12-29  3:17   ` Wu Bo
2022-12-29  9:21     ` Niklas Cassel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox