Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2019-09-06 08:39:12 -0700
committerLee Duncan <lduncan@suse.com>2019-09-06 08:39:28 -0700
commit9c03e5ba6ed50ff35fba0c8ba0e931a2def831c5 (patch)
tree4fe19d8219b8485aa8f8c89a7d51be968a3b487c
parent2fc9a63ea08c98d915bddca37b0bcfcc33b68a78 (diff)
scsi: sd: Defer spinning up drive while SANITIZE is in progress
(git-fixes). suse-commit: 9caf70f5040600c3aa9381ea3fcc5d258d1e62c6
-rw-r--r--drivers/scsi/sd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 31a402ca9b1f..bf41019c26cb 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2156,6 +2156,8 @@ sd_spinup_disk(struct scsi_disk *sdkp)
break; /* standby */
if (sshdr.asc == 4 && sshdr.ascq == 0xc)
break; /* unavailable */
+ if (sshdr.asc == 4 && sshdr.ascq == 0x1b)
+ break; /* sanitize in progress */
/*
* Issue command to spin up drive when not ready
*/