aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-02-02 13:00:12 +0100
committerTakashi Iwai <tiwai@suse.de>2017-02-03 17:36:13 +0100
commit313d9f28c1d5e0254ca16f2df0f1b737e30c0993 (patch)
treef028fc66be246aa44c34f016ad7af7d0e7791ffe /tools/perf/scripts/python
parentALSA: x86: Drop unused fields from pcm_stream_info (diff)
downloadlinux-313d9f28c1d5e0254ca16f2df0f1b737e30c0993.tar.gz
linux-313d9f28c1d5e0254ca16f2df0f1b737e30c0993.zip
ALSA: x86: Properly manage PCM substream lifetype
The PCM substream is referred not only in the PCM callbacks but also in the irq handler and in the hotplug/unplug codes. The latter code paths don't take the PCM lock, thus the PCM may be released unexpectedly while calling PCM helper functions or accessing pcm->runtime fields. This patch implements a simple refcount to assure the PCM substream accessibility while the other codes are accessing. It needed some code refactoring in the relevant functions for avoiding the doubly spinlocks. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions