[3274] in linux-scsi channel archive
Re: devfs - SCSI - ZIP test
daemon@ATHENA.MIT.EDU (Leonard N. Zubkoff)
Mon Feb 9 01:53:41 1998
Date: Sun, 8 Feb 1998 22:50:20 -0800
From: "Leonard N. Zubkoff" <lnz@dandelion.com>
To: rgooch@atnf.CSIRO.AU
cc: Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl>
CC: linux-scsi@vger.rutgers.edu
In-reply-to: <199802090132.MAA32000@vindaloo.atnf.CSIRO.AU> (message from
Richard Gooch on Mon, 9 Feb 1998 12:32:53 +1100)
Date: Mon, 9 Feb 1998 12:32:53 +1100
From: Richard Gooch <rgooch@atnf.CSIRO.AU>
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.
Andrzej Krzysztofowicz <ankry@green.mif.pg.gda.pl> just made an interesting
suggestion privately. In a nutshell, he suggested that once a driver has been
loaded, the host number assigned become sticky so that upon an unload and
subsequent reload, the same number will be assigned. While more work to
implement, this sounds like a more intuitive strategy. Comments?
Leonard