mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
192c4cccd0
So far, snd_ctl_remove() requires its caller to take card->controls_rwsem manually before the call for avoiding possible races. However, many callers don't care and miss the locking. Basically it's cumbersome and error-prone to enforce it to each caller. Moreover, card->controls_rwsem is a field that should be used only by internal or proper helpers, and it's not to be touched at random external places. This patch is an attempt to make those calls more consistent: now snd_ctl_remove() takes the card->controls_rwsem internally, just like other API functions for kctls. Since a few callers already take the controls_rwsem locks, the patch removes those locks at the same time, too. Link: https://lore.kernel.org/r/20230718141304.1032-5-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
---|---|---|
.. | ||
emu10k1_callback.c | ||
emu10k1_main.c | ||
emu10k1_patch.c | ||
emu10k1_synth_local.h | ||
emu10k1_synth.c | ||
emu10k1.c | ||
emu10k1x.c | ||
emufx.c | ||
emumixer.c | ||
emumpu401.c | ||
emupcm.c | ||
emuproc.c | ||
io.c | ||
irq.c | ||
Makefile | ||
memory.c | ||
p16v.c | ||
p16v.h | ||
p17v.h | ||
timer.c | ||
tina2.h | ||
voice.c |