[3271] in linux-scsi channel archive
Re: devfs - SCSI - ZIP test
daemon@ATHENA.MIT.EDU (Eric Youngdale)
Sun Feb 8 22:27:02 1998
Date: Sun, 8 Feb 1998 22:42:59 -0500 (EST)
From: Eric Youngdale <eric@andante.jic.com>
To: Richard Gooch <rgooch@atnf.CSIRO.AU>
cc: dario@milano.europe.dg.com, linux-scsi@vger.rutgers.edu
In-Reply-To: <199802090308.OAA32330@vindaloo.atnf.CSIRO.AU>
Whoops, there is another comment I just noticed:
/* If we are removing the last host registered, it is safe to reuse
* its host number (this avoids "holes" at boot time) (DB)
*/
if (max_scsi_hosts == next_scsi_host && !scsi_loadable_module_flag)
max_scsi_hosts--;
It is possible that if you just removed the check for loadable modules
that it would do what you want. Still, I would like to see what Dario
has to say - there may well be an important reason why this isn't done
for modules.
-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:
> Hi, Dario.
>
> [I wrote]
> > 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.
>
> Eric Youngdale mentioned that there is a note in drivers/scsi/hosts.c
> in which you said "never reuse host_no". Is this restriction still
> needed, or can we re-use host numbers now? I'm referring to kernel
> 2.1.85.
>
> Regards,
>
> Richard....
>