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>
Sun, 25 Aug 2019 08:51:34 +0000 (10:51 +0200)
commit5bf03ad9c4c77e25eaebe4f02266f9757f71f6ff
treec0876e4957746d6ec1654f7b8e48573a43e5fab1
parentb3a0c297e6e636d5b87bf5bb5cfa441a84d944c9
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