summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/device_handler
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2011-08-24 10:51:16 +0200
committerJames Bottomley <JBottomley@Parallels.com>2011-08-30 12:31:03 -0700
commit46ccf6b55bfa9fff7d0a9da761f186e98cf2f660 (patch)
treefa22e51f27ff12b0ba668c0e9fd07ec58e5b300d /drivers/scsi/device_handler
parent6c3633d08acf514e2e89aa95d2346ce9d64d719a (diff)
downloadop-kernel-dev-46ccf6b55bfa9fff7d0a9da761f186e98cf2f660.zip
op-kernel-dev-46ccf6b55bfa9fff7d0a9da761f186e98cf2f660.tar.gz
[SCSI] scsi_dh_alua: always update TPGS status on activate
When activating a patch we should always update the TPGS state as it might have changed in between. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/device_handler')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_alua.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 80c5cf3..f44dbf6 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -631,11 +631,9 @@ static int alua_activate(struct scsi_device *sdev,
struct alua_dh_data *h = get_alua_data(sdev);
int err = SCSI_DH_OK;
- if (h->group_id != -1) {
- err = alua_rtpg(sdev, h);
- if (err != SCSI_DH_OK)
- goto out;
- }
+ err = alua_rtpg(sdev, h);
+ if (err != SCSI_DH_OK)
+ goto out;
if (h->tpgs & TPGS_MODE_EXPLICIT &&
h->state != TPGS_STATE_OPTIMIZED &&
OpenPOWER on IntegriCloud