scsi: scsi_dh_alua: skip RTPG for devices only supporting active/optimized
authorHannes Reinecke <hare@suse.com>
Fri, 22 Dec 2017 11:52:53 +0000 (12:52 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Jan 2018 04:25:11 +0000 (23:25 -0500)
commit80c716fad82550b6c4ee4b7c6d48bff3fd7dab56
tree6467b3b860f9f61d1cd0045745626e674a7857af
parentbcb872400b50e0cfa75f12e6d6097595cd317690
scsi: scsi_dh_alua: skip RTPG for devices only supporting active/optimized

For hardware only supporting active/optimized there's no point in ever
re-issuing RTPG as the only new state we can possibly read is
active/optimized.  This avoid spurious errors during path failover on
such arrays.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c