[3265] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Re: devfs - SCSI - ZIP test

daemon@ATHENA.MIT.EDU (Richard Gooch)
Sun Feb 8 20:36:14 1998

Date: 	Mon, 9 Feb 1998 12:32:53 +1100
From: Richard Gooch <rgooch@atnf.CSIRO.AU>
To: "Leonard N. Zubkoff" <lnz@dandelion.com>
Cc: linux-scsi@vger.rutgers.edu
In-Reply-To: <199802081647.IAA25139@dandelion.com>

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.

				Regards,

					Richard....

home help back first fref pref prev next nref lref last post