scsi_dh_alua: call alua_rtpg() if stpg fails
authorHannes Reinecke <hare@suse.de>
Fri, 19 Feb 2016 08:17:01 +0000 (09:17 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Feb 2016 02:27:02 +0000 (21:27 -0500)
commitdd5cc4086bda53c2cd1a845c472816719d1dd50c
tree8aa04b85575ad59bb6e580973bb3ea6cea14e4f3
parentb2460756660c6a6d1be8e35a18521d5c2a3f5823
scsi_dh_alua: call alua_rtpg() if stpg fails

If the call to SET TARGET PORT GROUPS fails we have no idea what
state the array is left in, so we need to issue a call to
REPORT TARGET PORT GROUPS in these cases.

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