Revert "ANDROID: scsi: core: Limit zoned write retries"

Prepare for applying the FROMLIST version of this patch.

This reverts commit 3bfdcf06e4.

Bug: 234829282
Change-Id: I5b2492d9b1475f69a0650a7621a2ea1606d7fb92
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
Bart Van Assche
2023-08-04 09:50:19 -07:00
parent 8c7e6396da
commit 053f022ed4

View File

@@ -675,11 +675,8 @@ enum scsi_disposition scsi_check_sense(struct scsi_cmnd *scmd)
* Unaligned write command. This indicates that zoned writes got
* reordered. Retry after all pending commands have completed.
*/
if (sshdr.asc == 0x21 && sshdr.ascq == 0x04) {
return scsi_cmd_retry_allowed(scmd) &&
!scsi_noretry_cmd(scmd) ? NEEDS_DELAYED_RETRY :
SUCCESS;
}
if (sshdr.asc == 0x21 && sshdr.ascq == 0x04)
return NEEDS_DELAYED_RETRY;
if (sshdr.asc == 0x20 || /* Invalid command operation code */
sshdr.asc == 0x21 || /* Logical block address out of range */
sshdr.asc == 0x22 || /* Invalid function */