scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG
authorHannes Reinecke <hare@suse.de>
Fri, 12 Jul 2019 06:53:47 +0000 (08:53 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Jul 2019 02:20:02 +0000 (22:20 -0400)
commit20122994e38aef0ae50555884d287adde6641c94
tree28cb85a1f95f00c05f9b242216c5516d4ba938d5
parent5578257ca0e21056821e6481bd534ba267b84e58
scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG

Retrying immediately after we've received a 'transitioning' sense code is
pretty much pointless, we should always use a delay before retrying.  So
ensure the default delay is applied before retrying.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Tested-by: Zhangguanghui <zhang.guanghui@h3c.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/device_handler/scsi_dh_alua.c