mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user