scsi_dh_alua: simplify sense code handling
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:54 +0000 (10:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 21:38:20 +0000 (16:38 -0500)
commite2d817db32027c25a1702f667fbf0bf6a73fc68c
tree0b30835bceaedf3b6b7bb05502fd4be842e12798
parentad0ea64c53f5808e29784812fbb0c300f3a89d39
scsi_dh_alua: simplify sense code handling

Most sense code is already handled in the generic
code, so we shouldn't be adding special cases here.
However, when doing so we need to check for
unit attention whenever we're sending an internal
command.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Ewan Milne <emilne@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c