[3268] in linux-scsi channel archive
Re: devfs - SCSI - ZIP test
daemon@ATHENA.MIT.EDU (Richard Gooch)
Sun Feb 8 21:43:46 1998
Date: Mon, 9 Feb 1998 13:36:23 +1100
From: Richard Gooch <rgooch@atnf.CSIRO.AU>
To: Eric Youngdale <eric@andante.jic.com>
Cc: linux-scsi@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.95.980208212212.23026D-100000@andante.jic.com>
Eric Youngdale writes:
>
> I am not 100% sure myself - there is a comment in hosts.c that
> says we shouldn't do it, but I cannot think of any reason why myself. I
> would suggest asking Dario Ballabio, since it is his comment.
>
> -Eric
>
> "The woods are lovely, dark and deep. But I have promises to keep,
> And lines to code before I sleep, And lines to code before I sleep."
>
> On Mon, 9 Feb 1998, Richard Gooch wrote:
>
> > Leonard N. Zubkoff writes:
> > > Date: Sun, 8 Feb 1998 11:25:23 +1100
> > > From: Richard Gooch <rgooch@atnf.CSIRO.AU>
> > >
> > > How about a simple patch to re-use the last SCSI host number if the
> > > driver which allocated it was unloaded? Leonard?
> > >
> > > Back when this feature was first introduced, I wanted something similar and I
> > > vaguely recall there was a reason that modules behave the way they do. I
> > > personally don't see anything wrong with reusing the number if the
> > > load/unbloads nest, but there may be something I don't know about. Why not
> > > propose this on linux-scsi and see if anyone sees a reason not to do this.
> >
> > OK, done.
> >
> > Just to give background for people on linux-scsi: the original problem
> > which prompted this was that when a SCSI driver is loaded/unloaded
> > many times, the SCSI host number increases without each time (until it
> > wraps). This is particularly unhelpful with devfs.
> >
> > To solve this, a simple patch to decrement the host counter when a
> > module with the last allocated SCSI number is unloaded would do
> > nicely, I think.
I've just looked at hosts.c and I don't see such a comment. This was
for 2.1.85. What kernel version are you looking at?
Regards,
Richard....