[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190508070058.GQ14916@sirena.org.uk>
Date: Wed, 8 May 2019 16:00:58 +0900
From: Mark Brown <broonie@...nel.org>
To: Jerome Brunet <jbrunet@...libre.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, patchwork-bot+notify@...nel.org
Subject: Re: [PATCH v2 2/4] ASoC: hdmi-codec: remove reference to the current
substream
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.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists