Skip to content

Commit e37c7d9

Browse files
doug-gilbertmartinkpetersen
authored andcommitted
scsi: core: sanitize++ in progress
Commit 505aa4b ("scsi: sd: Defer spinning up drive while SANITIZE is in progress") may not be sufficient, especially if the SCSI SANITIZE command is sent via the bsg or sg pass-throughs, since they don't use the sd driver. Add "Sanitize in progress" plus some other recent "... in progress" additional sense codes into the scsi mid-level so they are treated in a similar fashion to "Format in progress". [mkp: checkpatch] Signed-off-by: Douglas Gilbert <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 017b3f8 commit e37c7d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/scsi/scsi_lib.c

+4
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,10 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes)
985985
case 0x08: /* Long write in progress */
986986
case 0x09: /* self test in progress */
987987
case 0x14: /* space allocation in progress */
988+
case 0x1a: /* start stop unit in progress */
989+
case 0x1b: /* sanitize in progress */
990+
case 0x1d: /* configuration in progress */
991+
case 0x24: /* depopulation in progress */
988992
action = ACTION_DELAYED_RETRY;
989993
break;
990994
default:

0 commit comments

Comments
 (0)