Re: [patch V3 03/20] usb: gadget: Use completion interface instead of open coding it

2020-03-27 Thread Sebastian Siewior
On 2020-03-25 10:37:57 [+0200], Felipe Balbi wrote:
> Do you want to carry it via your tree? If so:

We would like to do so.

> Acked-by: Felipe Balbi 

Thank you.

> Otherwise, let me know and I'll pick this patch.

Sebastian


Re: [patch V3 03/20] usb: gadget: Use completion interface instead of open coding it

2020-03-25 Thread Felipe Balbi
Thomas Gleixner  writes:

> From: Thomas Gleixner 
>
> ep_io() uses a completion on stack and open codes the waiting with:
>
>   wait_event_interruptible (done.wait, done.done);
> and
>   wait_event (done.wait, done.done);
>
> This waits in non-exclusive mode for complete(), but there is no reason to
> do so because the completion can only be waited for by the task itself and
> complete() wakes exactly one exlusive waiter.
>
> Replace the open coded implementation with the corresponding
> wait_for_completion*() functions.
>
> No functional change.
>
> Reported-by: Sebastian Andrzej Siewior 
> Signed-off-by: Thomas Gleixner 
> Reviewed-by: Greg Kroah-Hartman 
> Cc: Felipe Balbi 
> Cc: linux-...@vger.kernel.org

Do you want to carry it via your tree? If so:

Acked-by: Felipe Balbi 

Otherwise, let me know and I'll pick this patch.

-- 
balbi


signature.asc
Description: PGP signature