diff options
author | Hannes Reinecke <hare@suse.de> | 2011-08-24 10:51:16 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-30 12:31:03 -0700 |
commit | 46ccf6b55bfa9fff7d0a9da761f186e98cf2f660 (patch) | |
tree | fa22e51f27ff12b0ba668c0e9fd07ec58e5b300d /drivers/scsi/device_handler/scsi_dh_alua.c | |
parent | 6c3633d08acf514e2e89aa95d2346ce9d64d719a (diff) | |
download | linux-stable-46ccf6b55bfa9fff7d0a9da761f186e98cf2f660.tar.gz linux-stable-46ccf6b55bfa9fff7d0a9da761f186e98cf2f660.tar.bz2 linux-stable-46ccf6b55bfa9fff7d0a9da761f186e98cf2f660.zip |
[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/scsi_dh_alua.c')
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_alua.c | 8 |
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 80c5cf327b84..f44dbf69843a 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 && |