RE: OOPS - ide-scsi bug - SCSI BUS number increasing

From: Zwane Mwaikambo
Date: Sat Dec 06 2003 - 13:34:16 EST


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.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/