scsi: core: sanitize++ in progress
authorDouglas Gilbert <dgilbert@interlog.com>
Fri, 18 May 2018 23:25:47 +0000 (19:25 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 01:29:46 +0000 (21:29 -0400)
commite37c7d9a0341a3577a071f4ac55912f38be229e2
tree5539e298d0d56a933f081f354119fee490b34da7
parent017b3f8a10cad93263690251e5c9062df8f39ccd
scsi: core: sanitize++ in progress

Commit 505aa4b6a883 ("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 <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c