* OOPS - ide-scsi bug - SCSI BUS number increasing
@ 2003-12-06 17:15 gijoe
2003-12-06 18:07 ` Michael J. Cohen
0 siblings, 1 reply; 3+ messages in thread
From: gijoe @ 2003-12-06 17:15 UTC (permalink / raw)
To: linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 1849 bytes --]
There is a bug in ide-scsi module (kernel version 2.6.0-test10 with enabled
preemptible kernel) - this bug causes SCSI BUS number to be increased by one
everytime ide-scsi module is reloaded (modprobe -r ide-scsi then
do modprobe ide-scsi) - it is easy to spot that with cdrecord -scanbus.
This bug doesn't appear to exist in 2.4 kernel series, I've not tested this
with 2.5 series though, this is not cdrtools fault since I tried both versions
(2.00 and 2.00.3) with the same result.When ide-scsi is compiled into the
kernel, obviously the SCSI BUS number doesn't increase since there is no
possibility to reload it during the same kernel session.
/proc/scsi/scsi says:
Attached devices:
Host: scsi13 Channel: 00 Id: 00 Lun: 00
Vendor: LITE-ON Model: LTR-48246S Rev: SS0D
Type: CD-ROM ANSI SCSI revision: 02
And here is the reproduction of bug -
1) Before reloading ide-scsi, output of cdrecord -scanbus:
Linux sg driver version: 3.5.29
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Using libscg version 'schily-0.7'
scsibus13:
13,0,0 1300) 'LITE-ON ' 'LTR-48246S ' 'SS0D' Removable CD-ROM
13,1,0 1301) *
13,2,0 1302) *
13,3,0 1303) *
13,4,0 1304) *
13,5,0 1305) *
13,6,0 1306) *
13,7,0 1307) *
2) After preloading (modprobe -r ide-scsi && modprobe ide-scsi)
Linux sg driver version: 3.5.29
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Using libscg version 'schily-0.7'
scsibus14:
14,0,0 1400) 'LITE-ON ' 'LTR-48246S ' 'SS0D' Removable CD-ROM
14,1,0 1401) *
14,2,0 1402) *
14,3,0 1403) *
14,4,0 1404) *
14,5,0 1405) *
14,6,0 1406) *
14,7,0 1407) *
Output of uname -r:
2.6.0-test10-athlon
I was trying to fix this bug myself in ide-scsi.c code, but I unfortunately I
don't know it's structure...
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: OOPS - ide-scsi bug - SCSI BUS number increasing
2003-12-06 17:15 OOPS - ide-scsi bug - SCSI BUS number increasing gijoe
@ 2003-12-06 18:07 ` Michael J. Cohen
2003-12-06 18:32 ` Zwane Mwaikambo
0 siblings, 1 reply; 3+ messages in thread
From: Michael J. Cohen @ 2003-12-06 18:07 UTC (permalink / raw)
To: gijoe, linux-kernel
from what I know, ide-scsi is broken in 2.6 and deprecated in favor of atapi
burning. You can use cdrecord dev=/dev/hdx. Patches would be much
appreciated though.
------
Michael J. Cohen
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of
gijoe@poczta.onet.pl
Sent: Saturday, December 06, 2003 12:16 PM
To: linux-kernel@vger.kernel.org
Subject: OOPS - ide-scsi bug - SCSI BUS number increasing
There is a bug in ide-scsi module (kernel version 2.6.0-test10 with enabled
preemptible kernel) - this bug causes SCSI BUS number to be increased by one
everytime ide-scsi module is reloaded (modprobe -r ide-scsi then
do modprobe ide-scsi) - it is easy to spot that with cdrecord -scanbus.
This bug doesn't appear to exist in 2.4 kernel series, I've not tested this
with 2.5 series though, this is not cdrtools fault since I tried both
versions
(2.00 and 2.00.3) with the same result.When ide-scsi is compiled into the
kernel, obviously the SCSI BUS number doesn't increase since there is no
possibility to reload it during the same kernel session.
/proc/scsi/scsi says:
Attached devices:
Host: scsi13 Channel: 00 Id: 00 Lun: 00
Vendor: LITE-ON Model: LTR-48246S Rev: SS0D
Type: CD-ROM ANSI SCSI revision: 02
And here is the reproduction of bug -
1) Before reloading ide-scsi, output of cdrecord -scanbus:
Linux sg driver version: 3.5.29
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Using libscg version 'schily-0.7'
scsibus13:
13,0,0 1300) 'LITE-ON ' 'LTR-48246S ' 'SS0D' Removable CD-ROM
13,1,0 1301) *
13,2,0 1302) *
13,3,0 1303) *
13,4,0 1304) *
13,5,0 1305) *
13,6,0 1306) *
13,7,0 1307) *
2) After preloading (modprobe -r ide-scsi && modprobe ide-scsi)
Linux sg driver version: 3.5.29
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
Using libscg version 'schily-0.7'
scsibus14:
14,0,0 1400) 'LITE-ON ' 'LTR-48246S ' 'SS0D' Removable CD-ROM
14,1,0 1401) *
14,2,0 1402) *
14,3,0 1403) *
14,4,0 1404) *
14,5,0 1405) *
14,6,0 1406) *
14,7,0 1407) *
Output of uname -r:
2.6.0-test10-athlon
I was trying to fix this bug myself in ide-scsi.c code, but I unfortunately
I
don't know it's structure...
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: OOPS - ide-scsi bug - SCSI BUS number increasing
2003-12-06 18:07 ` Michael J. Cohen
@ 2003-12-06 18:32 ` Zwane Mwaikambo
0 siblings, 0 replies; 3+ messages in thread
From: Zwane Mwaikambo @ 2003-12-06 18:32 UTC (permalink / raw)
To: Michael J. Cohen; +Cc: gijoe, linux-kernel
On Sat, 6 Dec 2003, Michael J. Cohen wrote:
> There is a bug in ide-scsi module (kernel version 2.6.0-test10 with enabled
> preemptible kernel) - this bug causes SCSI BUS number to be increased by one
>
> everytime ide-scsi module is reloaded (modprobe -r ide-scsi then
> do modprobe ide-scsi) - it is easy to spot that with cdrecord -scanbus.
> This bug doesn't appear to exist in 2.4 kernel series, I've not tested this
> with 2.5 series though, this is not cdrtools fault since I tried both
> versions
> (2.00 and 2.00.3) with the same result.When ide-scsi is compiled into the
> kernel, obviously the SCSI BUS number doesn't increase since there is no
> possibility to reload it during the same kernel session.
This happens with all SCSI drivers, check;
scsi_host_alloc() {
...
shost->host_no = scsi_host_next_hn++; /* XXX(hch): still racy */
...
}
So it's fine.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-06 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-06 17:15 OOPS - ide-scsi bug - SCSI BUS number increasing gijoe
2003-12-06 18:07 ` Michael J. Cohen
2003-12-06 18:32 ` Zwane Mwaikambo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).