Commit 68c3a65a authored by Brian Bunker's avatar Brian Bunker Committed by Martin K. Petersen
Browse files

scsi: scsi_dh_alua: Increase default ALUA timeout to maximum spec value



The ALUA handler maps a 0 value (no implicit transition timeout provided
by the target) to the ALUA_FAILOVER_TIMEOUT constant, currently 60
seconds. This means the kernel already does not accept an infinite
transition time.

However, 60 seconds is insufficient for some arrays that may take longer
to complete ALUA transitions. Since the highest value allowed by the
SCSI specification for the implicit transition timeout is a single byte
(255 seconds), change the default to 255. This way, when a target does
not provide an explicit transition timeout, we default to the maximum
value the spec allows rather than an arbitrary 60 second limit.

Co-developed-by: default avatarKrishna Kant <krishna.kant@purestorage.com>
Signed-off-by: default avatarKrishna Kant <krishna.kant@purestorage.com>
Co-developed-by: default avatarRiya Savla <rsavla@purestorage.com>
Signed-off-by: default avatarRiya Savla <rsavla@purestorage.com>
Signed-off-by: default avatarBrian Bunker <brian@purestorage.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Link: https://patch.msgid.link/20260416165512.26497-2-brian@purestorage.com


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d65efdf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@
#define TPGS_MODE_EXPLICIT		0x2

#define ALUA_RTPG_SIZE			128
#define ALUA_FAILOVER_TIMEOUT		60
#define ALUA_FAILOVER_TIMEOUT		255	/* max 255 (8-bit value) */
#define ALUA_FAILOVER_RETRIES		5
#define ALUA_RTPG_DELAY_MSECS		5
#define ALUA_RTPG_RETRY_DELAY		2