Re: [PATCH] usb: core: hcd: fix possible deadlock in rh control transfers

Alan Stern
2026-04-29T19:18:34Z

On Wed, Apr 29, 2026 at 09:13:59PM +0200, Oliver Neukum wrote:
> On 29.04.26 21:04, Alan Stern wrote:
>
> > Besides, even if a resume was necessary, wouldn't the same VM magic that
> > works for the reset thread also work for the resume? After all, they
>
> They need not be the same thread. That is the point. usb_reset_device()
> does a resume. However, it is possible for this to race with another thread
> doing a resume or a suspend. In that case it will block and wait for
> another thread. Hence we essentially get priority inversion more or
> less.

Okay, I see. Good point. You should include this in the patch
description.

Alan Stern