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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:12:49 +0000 (10:12 +0200)
commitcdd92ebe29c2e36c6b76d0e404ffb6d3d191ec5b
tree52c08967a6fac38a03e237744ab468971d97d2ca
parentb620c6d5779a3319fe9970e8b84b1027233f6921
scsi: scsi_dh_alua: always use a 2 second delay before retrying RTPG

[ Upstream commit 20122994e38aef0ae50555884d287adde6641c94 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/device_handler/scsi_dh_alua.c