[SCSI] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed
authorMoger, Babu <Babu.Moger@netapp.com>
Wed, 21 Dec 2011 23:01:37 +0000 (18:01 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 10 Jan 2012 23:01:24 +0000 (17:01 -0600)
commit410f02d813212eef1dedfcfd43460dd11a0ff707
tree214943cd6ebd3f89084913f7dc705c2d1253fcc1
parent5b7db7af522d9f281ff8bf540d2b5cbea2206b27
[SCSI] scsi_dh_alua: Retry the check-condition in case Mode Parameters Changed

This patch adds a check-condition in scsi_dh_alua handler for a retry.
Sometimes, I have seen attach failing due to this check-condition with
following error messages on NetApp E series storage.

Dec  7 15:31:01 nilgiris kernel: [102979.696673] scsi 3:0:2:9: alua: port group 00 rel port 01
Dec  7 15:31:01 nilgiris kernel: [102979.697082] scsi 3:0:2:9: alua: rtpg failed with 8000002
Dec  7 15:31:01 nilgiris kernel: [102979.697086] scsi 3:0:2:9: alua: rtpg sense code 06/2a/01
Dec  7 15:31:01 nilgiris kernel: [102979.697088] scsi 3:0:2:9: alua: not attached

Signed-off-by: Babu Moger <babu.moger@netapp.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/device_handler/scsi_dh_alua.c