Re: Is this a known problem with the SCSI mid layer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



scameron@xxxxxxxxxxxxxxxxxx wrote:
> On Thu, Jan 14, 2010 at 01:24:59PM -0500, Douglas Gilbert wrote:
>> scameron@xxxxxxxxxxxxxxxxxx wrote:
>>> I'm seeing a problem which I think is a problem in the SCSI mid layer.
[...]
>>> Remove the device while something has it open:
[...]
>>> [root@slicer ~]# rmmod hpsa
>>> ERROR: Module hpsa is in use

The sg driver's open method takes a reference to the underlying SCSI
device representation of the mid layer.  Among else, this step increases
the module use count of the respective low-level driver (transport layer
driver) so that the SCSI mid layer can be sure that function pointers to
driver methods stay valid during the lifetime of the SCSI device
representation.

This reference taking is of course being reversed when the sg driver
finishes its last uses of the underlying SCSI device.  This may be at
the respective close() or even later.

In short, it is normal, expected, and necessary what you are seeing.
-- 
Stefan Richter
-=====-==-=- ---= -====
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux