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

Tigran Aivazian (tigran@aivazian.demon.co.uk)
Sun, 31 May 1998 17:27:16 +0100 (BST)


Dear Leonard,

I did not find e-mail for the maintainer of this specific SCSI module -
aic7xxx so I decided to mail you since you were mentioned in the
MAINTAINERS against SCSI Subsystem in general.

I am running 2.1.104pre1 and noticed an odd behaviour of aic7xxx module.

I compile sd_mod, scsi_mod and aic7xxx as modules and there is a line:

alias scsi_hostadapter aic7xxx

in /etc/modules.conf file. I have only one scsi device - ZIP drive and no
other SCSI adapters on this system. When I mount /dev/sda1 kmod correctly
autoloads sd_mod, scsi_mod and aic7xxx modules. Then I umount /dev/sda1
and rmmod aic7xxx. This removes it cleanly, i.e. /proc/ioports doesn't
oops (like it used to) and /proc/modules shows that everything is ok.

However, if I then insmod aic7xxx manually (with sd_mod and scsi_mod
already loaded from the previous time) the host number seems to be
incremented. The fragment shown below is after I repeated this procedure
twice (the only difference I see is that now it is scsi2 instead of scsi1,
whilst it should really be scsi0):

(scsi2) <Adaptec AHA-294X SCSI host adapter> found at PCI 10/0
(scsi2) Narrow Channel, SCSI ID=7, 16/255 SCBs
(scsi2) BIOS enabled, IO Port 0x6100, IRQ 11
(scsi2) IO Memory at 0xe1001000, MMAP Memory at 0xc3863000
(scsi2) Resetting channel
(scsi2) Downloading sequencer code... 406 instructions downloaded
scsi2 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.0.17/3.2.4
<Adaptec AHA-294X SCSI host adapter>
scsi : 1 host.
(scsi2:0:-1:-1) Scanning channel for devices.
Vendor: IOMEGA Model: ZIP 100 Rev: J.03
Type: Direct-Access ANSI SCSI revision: 02
Detected scsi removable disk sda at scsi2, channel 0, id 5, lun 0
SCSI device sda: hdwr sector= 512 bytes. Sectors= 196608 [96 MB] [0.1 GB]
sda: Write Protect is off
sda: sda1

>From the sources (drivers/scsi/aic7xxx.c/aic7xxx_register()) I can see
which variable is referenced but I can't see where it is incremented.
Probably it belongs to some data of another module (sd_mod or scsi_mod?)
because if I rmmod those two as well, host_no gets initialised to 0
correctly.

Regards,
Tigran.

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