Re: [RFC] scsi: reduce protection of scan_mutex in scsi_remove_device

Song Liu
2017-04-21T22:21:37Z

> On Apr 21, 2017, at 2:17 PM, Bart Van Assche <Bart.VanAssche@sandisk.com> wrote:
>
> On Fri, 2017-04-21 at 14:13 -0700, Song Liu wrote:
>> When a device is deleted through sysfs handle "delete", [ ... ]
>
> If I try to use that sysfs attribute then I encounter a deadlock (see
> also the report below). How is it possible that you have not hit that
> deadlock in your tests?
>
> Bart.

Hmm... Seems my test environment (VM) doesn't call the following path

__scsi_remove_device+0xe9/0x120
scsi_forget_host+0x60/0x70
scsi_remove_host+0x71/0x110

Let me fix it.

Thanks,
Song