]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: Use deferred fasync helper
authorTakashi Iwai <tiwai@suse.de>
Thu, 28 Jul 2022 12:59:45 +0000 (14:59 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Jul 2022 10:57:12 +0000 (12:57 +0200)
commit5d4b4aa4b4497fa8771d49e7c5d7aaab5f6a5678
tree750576e84d71b0f772fdb1c267e340ede1377de4
parent8f3f1cbf3a5a40a7083becf7e5f2b2186bfd9e4c
ALSA: control: Use deferred fasync helper

For avoiding the potential deadlock via kill_fasync() call, use the
new fasync helpers to defer the invocation from the control API.  Note
that it's merely a workaround.

Another note: although we haven't received reports about the deadlock
with the control API, the deadlock is still potentially possible, and
it's better to align the behavior with other core APIs (PCM and
timer); so let's move altogether.

Link: https://lore.kernel.org/r/20220728125945.29533-5-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/control.h
sound/core/control.c