I wrote:
So I just added a few more scsi_host_put() to sbp2_remove_device(). scsi_eh_# now goes away when I disconnect the device. Still, modprobe -r sbp2 fails with "FATAL: Module sbp2 is in use.".
I also added printks and according to them, shost_gendev.release is called after scsi_host_put is entered for the fourth time in sbp2_remove_device.
-- Stefan Richter -=====-=-=-= -=== -=-=- http://arcgraph.de/sr/ - : 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