Re: [PATCH] removel useless mod use count manipulation

Christoph Hellwig
2002-11-17T12:48:48Z

On Sun, Nov 17, 2002 at 11:40:43PM +1100, Douglas Gilbert wrote:
> Christoph Hellwig wrote:
> > There's a bunch of useless mod usecount handling in scsi:
>
> While playing with scsi_debug today I saw the opposite effect:
> with a file system mounted on a scsi_debug fake disk **, lsmod
> showed a zero "in use" count. I was able to "rmmod scsi_debug"
> and crash the system when I tried to access that mounted fs.

This change didn't change the use-count handling for HBA driver at all,
so this must be something different. Do you use a scsi_debug using
scsi_add_host/scsi_remove_host? Try adding

.module = THIS_MODULE,

to sdebug_driver_template, I forgot that change when sendig you the
initial draft version of the change.