lkml.org 
[lkml]   [2000]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Scsi disks duplicated
On Sat, Sep 09, 2000 at 07:25:53PM +0200, Torben Mathiasen wrote:
> This seems to some kind of scsi weirdness. Jens reports its the
> same with sr. Maybe Eric have a comment on this?

Some additional datapoints: I just commented out the last two lines
of sd.c:

--- sd.c.orig Sat Sep 9 17:47:46 2000
+++ sd.c Sat Sep 9 17:47:57 2000
@@ -1388,5 +1388,5 @@
kfree(sd_gendisks);
}

-module_init(init_sd);
-module_exit(exit_sd);
+/*module_init(init_sd);
+module_exit(exit_sd);*/
Now -test8 works for me (with the duplicated scsi devices, lvm didn't work).
This patch may break scsi modules - I have scsi compiled into the kernel and
didn't test modules.

But it seems obvious to me that with module_init(init_sd), the partition
detection code runs twice: once after hardware detection, and once when the
module_init()-Functions get called.

Jan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.041 / U:3.712 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site