]> git.baikalelectronics.ru Git - kernel.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)
commit9544b5c8e42aa87ee95384536dcf64aeeb7debe4
treed896614a038efbd52b1fc5f965d9547bd860c3a4
parent977d7609a592fb9dfad64a3300a463fe5be4a8fc
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