On 6/29/22 18:01, Ming Lei wrote:
.exit_cmd_priv is actually called from scsi_host_dev_release() instead of scsi_device_dev_release().
Agreed, I will fix this in the patch description.
Both scsi host pointer and host->shost_data is still valid when calling .exit_cmd_priv via scsi_mq_destroy_tags().
I will change the patch description to make it clear that both exit_cmd_priv implementations use resources associated with the SCSI host.
Thanks, Bart.