Randy Dunlap wrote: > > Since you grok all of that (above), maybe you can help here: > > With these 6 patches applied, I do the following: > > 1. insert PCMCIA aha152x card with SCSI drive attached (/dev/sdb4) > 2. mount -t vfat /dev/sdb4 /mnt/disk > 3. play with /mnt/disk > 4. umount /mnt/disk > > Now I would like to rmmod the aha152x_cs module, but its use count > is 2. Even if I eject the card, its use count stays at 2. > Maybe the reset or check_condition patch doesn't clean up correctly, > or one of them isn't releasing a used resource ? > > (this is 2.6.23-rc1 + your 6 patches + 1 acpi seq-file throttling fix.) > I had an hard look and a very careful line-by-line compare and I can't find anything obvious. Could you do a bisect. maybe it will give me a clue as to where to look. Also please Enable debug prints. Maybe the driver is stuck at some state and does not exit. Thanks Boaz - 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