scsi: sd: Defer spinning up drive while SANITIZE is in progress
authorMahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
Tue, 17 Apr 2018 11:33:12 +0000 (17:03 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 19 Apr 2018 03:37:40 +0000 (23:37 -0400)
commit505aa4b6a8834a2300971c5220c380c3271ebde3
treee6ea517ca16fa8fe10869bfb6e7333b7b03408dc
parentfb1633d56b0025233ed3dc49b44544748d509d9d
scsi: sd: Defer spinning up drive while SANITIZE is in progress

A drive being sanitized will return NOT READY / ASC 0x4 / ASCQ
0x1b ("LOGICAL UNIT NOT READY. SANITIZE IN PROGRESS").

Prevent spinning up the drive until this condition clears.

[mkp: tweaked commit message]

Signed-off-by: Mahesh Rajashekhara <mahesh.rajashekhara@microsemi.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c