summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-11-29 08:02:49 +0100
committerTakashi Iwai <tiwai@suse.de>2018-11-29 08:14:52 +0100
commitb51abed8355e5556886623b2772fa6b7598d2282 (patch)
tree1c9b22f8a928e9252e339252a2482e81ee94c2d5 /tools/perf/scripts/python/export-to-postgresql.py
parent8159a6a4a7d2a092d5375f695ecfca22b4562b5f (diff)
ALSA: pcm: Call snd_pcm_unlink() conditionally at closing
Currently the PCM core calls snd_pcm_unlink() always unconditionally at closing a stream. However, since snd_pcm_unlink() invokes the global rwsem down, the lock can be easily contended. More badly, when a thread runs in a high priority RT-FIFO, it may stall at spinning. Basically the call of snd_pcm_unlink() is required only for the linked streams that are already rare occasion. For normal use cases, this code path is fairly superfluous. As an optimization (and also as a workaround for the RT problem above in normal situations without linked streams), this patch adds a check before calling snd_pcm_unlink() and calls it only when needed. Reported-by: Chanho Min <chanho.min@lge.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions