On 7/9/22 08:57, Mike Christie wrote:
If so, could we move what are doing in this patch down a level? Put the wait in scsi_remove_target and wake in scsi_target_dev_release. Instead of a target_count you have a scsi_target sdev_count. scsi_forget_host would then need to loop over the targets and do scsi_target_remove on them instead of doing it at the scsi_device level.
Hi Mike, Thanks for having taken a look. Could the approach outlined above have user-visible side effects? A different approach has been selected for v4 of this patch series. Further feedback is welcome. Thanks, Bart.