RE: [PATCH] usb: uas: fix usb subsystem hang after power off hub port

From: Alan Stern
Date: Mon Apr 08 2019 - 21:21:32 EST


On Tue, 9 Apr 2019 Kento.A.Kobayashi@xxxxxxxx wrote:

> Hi,
>
> >So it looks as though the SCSI subsystem doesn't like to have a reset handler call scsi_remove_host. Commands dispatched by the removal routines are forced to wait for the reset recovery to finish, which won't happen until those commands have been completed.
>
> You mean reset handeler should not call scsi_remove_host, right?
> But actually, scsi_remove_host is called from reset handler in this case.
>
> >Is this a bug in the SCSI core?
> No, I think this is a bug in uas driver.

Actually I was asking James and Martin, not you.

In any case, even assuming the cause of the problem is on the USB side,
it's not clear whether the bug is in uas or in usbcore.

Alan Stern