[3269] in linux-scsi channel archive
Re: devfs - SCSI - ZIP test
daemon@ATHENA.MIT.EDU (Eric Youngdale)
Sun Feb 8 22:04:45 1998
Date: Sun, 8 Feb 1998 22:22:49 -0500 (EST)
From: Eric Youngdale <eric@andante.jic.com>
To: Richard Gooch <rgooch@atnf.CSIRO.AU>
cc: linux-scsi@vger.rutgers.edu
In-Reply-To: <199802090236.NAA32205@vindaloo.atnf.CSIRO.AU>
Here is the comment:
> retval->extra_bytes = j;
> retval->loaded_as_module = scsi_loadable_module_flag;
> retval->host_no = max_scsi_hosts++; /* never reuse host_no (DB) */
> next_scsi_host++;
> retval->host_queue = NULL;
I suppose it would be hard to find if you didn't know that "DB"
was Dario...
-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:
> 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....
>