[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-scsi
Subject: [PATCH] 2.4.16 - Fix scanning of luns > 7 on SCSI-3 devices
From: Michael Clark <michael () metaparadigm ! com>
Date: 2001-11-30 7:43:14
[Download RAW message or body]
Hi,
I have a problem with scsi_scan in Linux 2.4.16 not probing SCSI-3
devices with
luns > 7. (i'm using the qlogic qla2x00 driver).
scan_scsis_single is not setting scsi_level in the Scsi_Device structure
(it is
set then overwritten with 0 later by memset) so scan_scsis is
terminating at lun 7.
This patch makes sure scsi_level is set correctly in the Scsi_Device
structure
after probing so SCSI-3 255 lun probing is supported.
~mc
--- linux/drivers/scsi/scsi_scan.c.orig Fri Nov 30 13:07:25 2001
+++ linux/drivers/scsi/scsi_scan.c Fri Nov 30 15:02:11 2001
@@ -500,6 +501,7 @@
Scsi_Request * SRpnt;
int bflags, type = -1;
extern devfs_handle_t scsi_devfs_handle;
+
int scsi_level;
SDpnt->host = shpnt;
SDpnt->id = dev;
@@ -672,6 +674,7 @@
(SDpnt->scsi_level == 1 &&
(scsi_result[3] & 0x0f) == 1))
SDpnt->scsi_level++;
+
scsi_level = SDpnt->scsi_level; /* save for use later after we memset
*SDpnt */
/*
* Accommodate drivers that want to sleep when they should be in a polling
@@ -749,6 +752,7 @@
SDpnt->queue_depth = 1;
SDpnt->host = shpnt;
SDpnt->online = TRUE;
+
SDpnt->scsi_level = scsi_level;
/*
* Register the queue for the device. All I/O requests will come
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic