On Wed, Jul 6, 2011 at 7:20 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote: > Looks can be deceiving. Although the scsi_free_queue() is higher up in > the source file, it actually runs later than this code. That's because > __scsi_remove_device() -- this code -- gets called when the device is > unregistered from the driver core, whereas > scsi_device_dev_release_usercontext() -- where the scsi_free_queue() is > moved to -- gets called when the last reference to the device is > dropped. OK, I see. Sorry for the confusion, I just looked at the patch quickly and assumed that the line moved up in the same function. - R. -- 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