lkml.org 
[lkml]   [2000]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: SCSI scan problem in 2.4test8
On Wed, Sep 13 2000, Matthew Kirkwood wrote:
> Hi,
>
> 2.4 seems to have problems scanning SCSI busses. It
> looks rather like it is scanning the first bus for
> every host that it finds.
>
> My dmesg is attached. In my dual-P3 box, I have three
> disks on the first channel of an on-board aic7xxx:
>
> $ cat /proc/scsi/scsi
> Attached devices:
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
> Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909
> Type: Direct-Access ANSI SCSI revision: 03
> Host: scsi0 Channel: 00 Id: 01 Lun: 00
> Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909
> Type: Direct-Access ANSI SCSI revision: 03
> Host: scsi0 Channel: 00 Id: 02 Lun: 00
> Vendor: QUANTUM Model: ATLAS IV 9 WLS Rev: 0909
> Type: Direct-Access ANSI SCSI revision: 03
>

Could you try out this patch. The module_init/exit stuff in sd.c
has given some people a real headache.

--
Torben Mathiasen <tmm@image.dk>
Linux ThunderLAN maintainer
http://tlan.kernel.dk
diff -ur --exclude-from=/root/torben linux-2.4.0-test8/drivers/scsi/sd.c linux/drivers/scsi/sd.c
--- linux-2.4.0-test8/drivers/scsi/sd.c Sun Sep 10 11:55:58 2000
+++ linux/drivers/scsi/sd.c Sun Sep 10 12:07:09 2000
@@ -1335,12 +1335,14 @@
return;
}

-int init_sd(void)
+#ifdef MODULE
+
+int init_module(void)
{
sd_template.module = THIS_MODULE;
return scsi_register_module(MODULE_SCSI_DEV, &sd_template);
}
-void exit_sd(void)
+void cleanup_module(void)
{
struct gendisk **prev_sdgd_link;
struct gendisk *sdgd;
@@ -1388,5 +1390,4 @@
kfree(sd_gendisks);
}

-module_init(init_sd);
-module_exit(exit_sd);
+#endif /* MODULE */
\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.364 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site