On 04/06/12 13:13, Tomas Henzl wrote: > This means that after scsi_remove_host is left and the driver rmmoded > we call scsi_host_put which in the end calls scsi_host_dev_release > and this function tries to use the now invalid host_template > functions again. There are already several other ways in which the host template can be accessed after scsi_remove_host() finished: * Via the scsi_proc_hostdir_rm() call in scsi_host_dev_release(). * From the SCSI error handler thread. * From inside scsi_dispatch_cmd(). Why isn't the SCSI error handler thread stopped from inside scsi_remove_host() ? And why isn't scsi_proc_hostdir_rm() invoked from inside scsi_remove_host() ? Am I missing something ? Thanks, Bart. -- 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