Re: [PATCH v2 2/4] ASoC: hdmi-codec: remove reference to the current substream

From: Mark Brown
Date: Wed May 08 2019 - 03:40:09 EST


On Mon, May 06, 2019 at 11:58:13AM +0200, Jerome Brunet wrote:

> Remove current_substream pointer and replace the exclusive locking
> mechanism with a simple variable and some atomic operations.

The advantage of mutexes is that they are very simple and clear to
reason about. It is therefore unclear that this conversion to use
atomic variables is an improvement, they're generally more complex
to reason about and fragile.

Attachment: signature.asc
Description: PGP signature