Skip to content

ALSA: Refactoring PCM locking code

Takashi Iwai alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ALSA: pcm: Call snd_card_unref() inside in_pcm_file()sound/core/pcm_native.c+8 -30 replies
2/7ALSA: pcm: Unify snd_pcm_group initializationsound/core/pcm.c sound/core/pcm_local.h sound/core/pcm_native.c+11 -70 replies
3/7ALSA: pcm: Make PCM linked list consistent while re-groupinginclude/sound/pcm.h sound/core/pcm_native.c+20 -150 replies
4/7ALSA: pcm: Avoid confusing loop in snd_pcm_unlink()sound/core/pcm_native.c+3 -50 replies
5/7ALSA: pcm: More fine-grained PCM link lockinginclude/sound/pcm.h sound/core/pcm_native.c+124 -440 replies
6/7ALSA: pcm: Remove down_write() hack for snd_pcm_link_rwsemsound/core/pcm_native.c+2 -140 replies
7/7ALSA: pcm: Cleanup snd_pcm_stream_lock() & cosound/core/pcm_native.c+16 -520 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] ALSA: Refactoring PCM locking code

Hi,

this is a patch set to refactor the PCM locking code and to reduce the global lock. At least, this gets rid of the global rwlock, while the global rwsem is still needed for some non-atomic ops and for avoiding the deadlock at linking.

Takashi

===

Takashi Iwai (7):
ALSA: pcm: Call snd_card_unref() inside in_pcm_file()
ALSA: pcm: Unify snd_pcm_group initialization
ALSA: pcm: Make PCM linked list consistent while re-grouping
ALSA: pcm: Avoid confusing loop in snd_pcm_unlink()
ALSA: pcm: More fine-grained PCM link locking
ALSA: pcm: Remove down_write() hack for snd_pcm_link_rwsem
ALSA: pcm: Cleanup snd_pcm_stream_lock() & co

 include/sound/pcm.h     |   3 +-
 sound/core/pcm.c        |   4 +-
 sound/core/pcm_local.h  |   1 +
 sound/core/pcm_native.c | 290 ++++++++++++++++++++++++++++--------------------
 4 files changed, 171 insertions(+), 127 deletions(-)
Signature · 1 line
2.16.4