From: Hannes Reinecke Date: Fri, 12 Jun 2015 14:12:48 +0000 (+0200) Subject: scsi: retry MODE SENSE on unit attention X-Git-Tag: omap-for-v4.3/fixes-rc1~115^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ae80ba91f57726f31b5b5890cb7c5173e624ca4;p=pandora-kernel.git scsi: retry MODE SENSE on unit attention The 'sd' driver is calling scsi_mode_sense() to figure out internal details. But scsi_mode_sense() never checks for any pending unit attentions, so we're getting annoying error messages like: MODE SENSE: unimplemented page/subpage: 0x00/0x00 and a possible wrong decision for device cache handling. Reviewed-by: Ewan Milne Signed-off-by: Hannes Reinecke Signed-off-by: James Bottomley --- Reading git-diff-tree failed