[SCSI] scsi_dh_alua: fix stpg_endio group state reporting
authorJoseph Gruher <joseph.r.gruher@intel.com>
Wed, 5 Jan 2011 21:00:22 +0000 (16:00 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 24 Jan 2011 17:13:25 +0000 (11:13 -0600)
commit9349923d3f83bea1ba287a851c3f6737c6513039
tree50dac8d5fc4834a80da488e52c3e8fb6c702df15
parented0f36bc5719b25659b637f80ceea85494b84502
[SCSI] scsi_dh_alua: fix stpg_endio group state reporting

Initialize stpg_endio() 'err' to SCSI_DH_OK and only change it to
SCSI_DH_IO accordingly.  This allows the switching of target group state
to be properly reported when no error has occurred.

Signed-off-by: Joseph Gruher <joseph.r.gruher@intel.com>
Signed-off-by: Ilgu Hong <ilgu.hong@promise.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/device_handler/scsi_dh_alua.c