]> git.baikalelectronics.ru Git - kernel.git/commit
SCSI: Increase REPORT_LUNS timeout
authorBrian King <brking@linux.vnet.ibm.com>
Fri, 4 Sep 2015 19:47:06 +0000 (14:47 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Nov 2015 04:30:05 +0000 (23:30 -0500)
commit491e3d931e33dfca27d058f1963d1c1047583465
tree6626de850fd50462c75f78f34348536eccd86a76
parent6949d2fdc0700788882525944d7eddfc99d25aba
SCSI: Increase REPORT_LUNS timeout

This patch fixes an issue seen with an IBM 2145 (SVC) where, following an error
injection test which results in paths going offline, when they came
back online, the path would timeout the REPORT_LUNS issued during the
scan. This timeout situation continued until retries were expired, resulting in
falling back to a sequential LUN scan. Then, since the target responds
with PQ=1, PDT=0 for all possible LUNs, due to the way the sequential
LUN scan code works, we end up adding 512 LUNs for each target, when there
is really only a small handful of LUNs that are actually present.

This patch increases the timeout used on the REPORT_LUNS to 30 seconds.
This patch solves the issue of 512 non existent LUNs showing up after
this event.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_scan.c