Re: Host drivers and conversion of SCSI to the driver model

Christoph Hellwig
2003-07-06T15:50:08Z

On Thu, Jul 03, 2003 at 11:15:32AM -0400, Alan Stern wrote:
> > If you think a bit about this this is what's really needed - even with
> > your notification you'd still have module unload races. With the above
> > fix you can just free your private data in your ->remove method
> > (or wherever you want) after you marked the struct device / class_device
> > gone and be sure it'll never be used again.
>
> How will this interact with the module reference-counting just added to
> sysfs by Greg K-H? Maybe with that new feature, none of this will be
> needed.

The module refounting helps with the attribute vs unload races but
nothing else.