# Re: \[PATCH v2 5/5\] usb: gadget: u\_audio: clean up locking

- From: Felipe Balbi \<balbi@kernel.org\>
- Date: 2021-01-07 09:29:34 
- List: linux-usb
- Page: https://ratatoskr.run/linux-usb/2021/01/6226328
- Thread: https://ratatoskr.run/linux-usb/2021/01/6225416/t.md

```text
Jerome Brunet [ref] writes:

> snd_pcm_stream_lock() is held when the ALSA .trigger() callback is called.
> The lock of 'struct uac_rtd_params' is not necessary since all its locking
> operation are done under the snd_pcm_stream_lock() too.
>
> Also, usb_request .complete() is called with irqs disabled, so saving and
> restoring the irqs is not necessary.
>
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>

This is nice!

Acked-by: Felipe Balbi <redacted>

-- 
balbi
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-usb/2021/01/6226328/attachment/0) (application/pgp-signature, 857 bytes)
