]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: retry MODE SENSE on unit attention
authorHannes Reinecke <hare@suse.de>
Fri, 12 Jun 2015 14:12:48 +0000 (16:12 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 30 Jul 2015 19:37:20 +0000 (12:37 -0700)
commit1635a246fea179d6cabdaf0ab9b56055a1a770d5
tree42c8c0b21ec3456a11dc3400ec3ffa85afdf4d90
parent4a56d2f99adf345e8d654f2384ca738c353d82ce
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 <emilne@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/scsi_lib.c