aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-01-31 14:36:49 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-02-07 19:02:35 -0500
commit921601b7031f8a2c71f49f1b965ee00ebbca6886 (patch)
tree811dd3a2e2447be8c41e1c26c199103f94553f13 /drivers/scsi/qla4xxx
parent8aae18adb240a9eb1999b8245c56522cbefc9047 (diff)
[SCSI] qla4xxx: add async scan support
qla4xxx has the old school startup/probe where it finds presetup sessions in its flash and then attempts to log into them before returning from the probe. This however, makes it very simple to add a iscsi class scan finished helper which the driver can use. In future patches Dave or I will rip apart the driver to make it more like qla2xxx, but for now this is a very simple two line patch which fixes the problem of trying to figure out when the initial sessions are done being scanned. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Cc: David Somayajulu <david.somayajulu@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index d4dd149b466f..c3c59d763037 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -89,6 +89,8 @@ static struct scsi_host_template qla4xxx_driver_template = {
89 .slave_alloc = qla4xxx_slave_alloc, 89 .slave_alloc = qla4xxx_slave_alloc,
90 .slave_destroy = qla4xxx_slave_destroy, 90 .slave_destroy = qla4xxx_slave_destroy,
91 91
92 .scan_finished = iscsi_scan_finished,
93
92 .this_id = -1, 94 .this_id = -1,
93 .cmd_per_lun = 3, 95 .cmd_per_lun = 3,
94 .use_clustering = ENABLE_CLUSTERING, 96 .use_clustering = ENABLE_CLUSTERING,
@@ -1306,7 +1308,7 @@ static int __devinit qla4xxx_probe_adapter(struct pci_dev *pdev,
1306 qla4xxx_version_str, ha->pdev->device, pci_name(ha->pdev), 1308 qla4xxx_version_str, ha->pdev->device, pci_name(ha->pdev),
1307 ha->host_no, ha->firmware_version[0], ha->firmware_version[1], 1309 ha->host_no, ha->firmware_version[0], ha->firmware_version[1],
1308 ha->patch_number, ha->build_number); 1310 ha->patch_number, ha->build_number);
1309 1311 scsi_scan_host(host);
1310 return 0; 1312 return 0;
1311 1313
1312remove_host: 1314remove_host: