Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] ibmvfc: Reduce error recovery timeout

If a command times out resulting in EH getting invoked, we wait for the
aborted commands to come back after sending the abort. Shorten
the amount of time we wait for these responses, to ensure we don't
get stuck in EH for several minutes.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Brian King and committed by
James Bottomley
daa142d1 f5832fa2

+2 -1
+1 -1
drivers/scsi/ibmvscsi/ibmvfc.c
··· 2245 2245 DECLARE_COMPLETION_ONSTACK(comp); 2246 2246 int wait; 2247 2247 unsigned long flags; 2248 - signed long timeout = init_timeout * HZ; 2248 + signed long timeout = IBMVFC_ABORT_WAIT_TIMEOUT * HZ; 2249 2249 2250 2250 ENTER; 2251 2251 do {
+1
drivers/scsi/ibmvscsi/ibmvfc.h
··· 38 38 #define IBMVFC_ADISC_PLUS_CANCEL_TIMEOUT \ 39 39 (IBMVFC_ADISC_TIMEOUT + IBMVFC_ADISC_CANCEL_TIMEOUT) 40 40 #define IBMVFC_INIT_TIMEOUT 120 41 + #define IBMVFC_ABORT_WAIT_TIMEOUT 40 41 42 #define IBMVFC_MAX_REQUESTS_DEFAULT 100 42 43 43 44 #define IBMVFC_DEBUG 0