Re: [PATCH] correct module refcounting

Christoph Hellwig
2003-10-31T12:18:45Z

On Tue, Oct 28, 2003 at 03:46:02PM -0600, James Bottomley wrote:
> There's a race window between doing the last scsi_device_put and having
> the devices actually released where the module may be unloaded. The fix
> is to move the module accounting into the
> scsi_allocate_sdev/scsi_free_sdev pieces of the SCSI routines.

That would mean we can't rmmod a LLDD without first removing all device
through sysfs, or did I get it completely wrong?

--
Christoph Hellwig <hch@lst.de> - Freelance Hacker
Contact me for driver hacking and kernel development consulting