Re: aic7xxx_host->host_no persists through ins/rmmod aic7xxx = not right.

Eric Youngdale (eric@andante.jic.com)
Mon, 1 Jun 1998 18:41:45 -0400 (EDT)


On Mon, 1 Jun 1998, Leonard N. Zubkoff wrote:

> Date: Sun, 31 May 1998 17:27:16 +0100 (BST)
> From: Tigran Aivazian <tigran@aivazian.demon.co.uk>
>
> For some reason I do not recall, the original author of the SCSI module code
> decided that the host number needed to be incremented every time a driver was
> loaded. I don't see a reason for this, at least in the case where driver

Originally I had never considered the possibility of preserving
bus numbers as modules are loaded and unloaded. This is mainly because at
the time the bus number didn't have any special meaning other than to
serve as a useful indicator that humans could use to interpret the log
messages from scanning the bus. Later on people began to use the bus
number for other things, and as a result it became more important to try
and preserve the bus number for a given host. Dario came up with the code
below to preserve bus numbers in some limited circumstances.

> modules are removed in the reverse order that they were installed. I also
> recall a proposal to keep track of where a driver module had been installed and
> re-install at the same host number if possible. An interesting experiment
> would be to remove the module test in:
>
> if (max_scsi_hosts == next_scsi_host && !scsi_loadable_module_flag)
> max_scsi_hosts--;
>
> from hosts.c and see if the system operates properly.

My guess is that this will work correctly. If we weren't so
close to 2.2, I would just suggest yanking it out entirely (after a few
people had tried it).

-Eric

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu