]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: pcm: Remove down_write() hack for snd_pcm_link_rwsem
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Jan 2019 13:29:51 +0000 (14:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 Jan 2019 06:40:49 +0000 (07:40 +0100)
commitecb41f0f44cadfa90ef9acff3ffe95563274ec1c
treed896614a038efbd52b1fc5f965d9547bd860c3a4
parentf57f3df03a8e6010e321fa0258d3e054713c3cb7
ALSA: pcm: Remove down_write() hack for snd_pcm_link_rwsem

Remove the hackish down_write_nonfifo() that was introduced as a
workaround of rwsem deadlock.

It used to be a problem for non-atomic PCM streams that take the rwsem
for the locking and hit the high lock contention.  Since the current
PCM locking refactoring, we'll no longer hit it as the hot code-paths
don't take global locks.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c