Re: [PATCH v4] sd: Ignore sync cache failures when not supported

From: Martin K. Petersen
Date: Tue May 16 2017 - 21:09:11 EST



Thierry,

> Some external hard drives don't support the sync command even though
> the hard drive has write cache enabled. In this case, upon suspend
> request, sync cache failures are ignored if the error code in the
> sense header is ILLEGAL_REQUEST. There's not much we can do for these
> drives, so we shouldn't fail to suspend for this error case. The drive
> may stay powered if that's the setup for the port it's plugged into.

Applied to 4.12/scsi-fixes, thanks!

--
Martin K. Petersen Oracle Linux Engineering