Mahesh Rajashekhara b23b417427 scsi: sd: Defer spinning up drive while SANITIZE is in progress
commit 505aa4b6a8834a2300971c5220c380c3271ebde3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-01 12:58:19 -07:00
..
2017-09-07 12:12:43 -07:00
2017-12-25 14:26:25 +01:00
2018-01-02 20:31:05 +01:00
2017-09-07 12:12:43 -07:00
2017-09-07 12:12:43 -07:00
2017-08-25 17:21:11 -04:00
2017-08-24 22:29:06 -04:00
2017-08-25 17:21:10 -04:00
2017-08-08 11:49:51 -04:00
2017-09-13 10:47:14 -07:00
2017-08-25 17:21:11 -04:00
2018-03-19 08:42:53 +01:00
2017-04-13 13:58:20 -04:00
2017-09-07 12:12:43 -07:00
2017-08-08 11:49:51 -04:00
2017-04-26 18:32:29 -04:00