diff options
author | Takashi Iwai <[email protected]> | 2022-03-22 18:13:25 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-03-22 20:57:15 +0100 |
commit | 1f68915b2efd0d6bfd6e124aa63c94b3c69f127c (patch) | |
tree | 8ecc866b1820296c074e8a6d1bc8231d944b8c8d /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | 69534c48ba8ce552ce383b3dfdb271ffe51820c3 (diff) |
ALSA: pcm: Add stream lock during PCM reset ioctl operations
snd_pcm_reset() is a non-atomic operation, and it's allowed to run
during the PCM stream running. It implies that the manipulation of
hw_ptr and other parameters might be racy.
This patch adds the PCM stream lock at appropriate places in
snd_pcm_*_reset() actions for covering that.
Cc: <[email protected]>
Reviewed-by: Jaroslav Kysela <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions