]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd: Ignore a failure to sync cache due to lack of authorization
authorOliver Neukum <oneukum@suse.com>
Tue, 3 Sep 2019 10:18:39 +0000 (12:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 03:52:14 +0000 (23:52 -0400)
commitd242d94ae3654fc2d9dc6a372c6254f149622778
tree605980d8e3d8b11c180eb31ec230ddf3c0b570dc
parent898d6c0eb360528692a2a1c6fbc5774975316143
scsi: sd: Ignore a failure to sync cache due to lack of authorization

I've got a report about a UAS drive enclosure reporting back Sense: Logical
unit access not authorized if the drive it holds is password protected.
While the drive is obviously unusable in that state as a mass storage
device, it still exists as a sd device and when the system is asked to
perform a suspend of the drive, it will be sent a SYNCHRONIZE CACHE. If
that fails due to password protection, the error must be ignored.

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190903101840.16483-1-oneukum@suse.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c