WSL2-Linux-Kernel/sound/core
Frederik Deweerdt 208eee2a9d [ALSA] pcm_native: lockdep warning when launching jack
When launching 'jackd -d alsa', lockdep issues the following warning:
[39701.405086] =============================================
[39701.405093] [ INFO: possible recursive locking detected ]
[39701.405107] 2.6.21-rc5-mm4 #2
[39701.405109] ---------------------------------------------
[39701.405112] jackd/17366 is trying to acquire lock:
[39701.405114]  (&substream->self_group.lock){....}, at: [<c034d3c0>] snd_pcm_action_group+0x90/0x240
[39701.405131]
[39701.405131] but task is already holding lock:
[39701.405134]  (&substream->self_group.lock){....}, at: [<c034d63f>] snd_pcm_action_lock_irq+0x3f/0xb0
[39701.405141]
[39701.405142] other info that might help us debug this:
[39701.405145] 3 locks held by jackd/17366:
[39701.405147]  #0:  (snd_pcm_link_rwlock){....}, at: [<c034d627>] snd_pcm_action_lock_irq+0x27/0xb0
[39701.405155]  #1:  (&substream->group->lock){....}, at: [<c034d638>] snd_pcm_action_lock_irq+0x38/0xb0
[39701.405163]  #2:  (&substream->self_group.lock){....}, at: [<c034d63f>] snd_pcm_action_lock_irq+0x3f/0xb0
[39701.405171]
[39701.405171] stack backtrace:
[39701.405174]  [<c0103b8a>] show_trace_log_lvl+0x1a/0x30
[39701.405179]  [<c0104912>] show_trace+0x12/0x20
[39701.405183]  [<c01049c6>] dump_stack+0x16/0x20
[39701.405187]  [<c013b980>] __lock_acquire+0xbd0/0x1040
[39701.405193]  [<c013be60>] lock_acquire+0x70/0x90
[39701.405197]  [<c0407846>] _spin_lock+0x36/0x50
[39701.405203]  [<c034d3c0>] snd_pcm_action_group+0x90/0x240
[39701.405207]  [<c034d653>] snd_pcm_action_lock_irq+0x53/0xb0
[39701.405211]  [<c035046f>] snd_pcm_common_ioctl1+0x35f/0xfb0
[39701.405215]  [<c0351544>] snd_pcm_playback_ioctl1+0x34/0x420
[39701.405219]  [<c03519f3>] snd_pcm_playback_ioctl+0x43/0x50
[39701.405223]  [<c017ecc8>] do_ioctl+0x28/0x80
[39701.405229]  [<c017ed77>] vfs_ioctl+0x57/0x290
[39701.405233]  [<c017efe9>] sys_ioctl+0x39/0x60
[39701.405237]  [<c0102bf4>] sysenter_past_esp+0x5d/0x99
[39701.405240]  =======================
The attached lockdep annotation silences the warning.

Signed-off-by: Frederik Deweerdt <frederik.deweerdt@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
2007-05-11 16:55:57 +02:00
..
oss header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
seq header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
Kconfig misc doc and kconfig typos 2007-05-09 08:58:15 +02:00
Makefile [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
control.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
control_compat.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
device.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
hwdep.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
hwdep_compat.c [PATCH] hwdep_compat missed __user annotations 2006-10-10 15:37:21 -07:00
info.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
info_oss.c [PATCH] namespaces: utsname: use init_utsname when appropriate 2006-10-02 07:57:21 -07:00
init.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
isadma.c [ALSA] Clean up EXPORT_SYMBOL()s in snd module 2006-06-22 21:32:52 +02:00
memalloc.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
memory.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
misc.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
pcm.c [PATCH] Fix breakage with CONFIG_SYSFS_DEPRECATED 2007-02-09 16:25:48 +01:00
pcm_compat.c [ALSA] Fix control/status mmap with shared PCM substream 2006-09-23 10:39:50 +02:00
pcm_lib.c [ALSA] Fix possible invalid memory access in PCM core 2007-02-09 09:03:31 +01:00
pcm_memory.c [ALSA] pcm core: add prealloc_max file to substream directory to show maximum DMA size 2007-02-09 09:00:13 +01:00
pcm_misc.c [ALSA] Move OSS-specific hw_params helper to snd-pcm-oss module 2006-06-22 21:33:05 +02:00
pcm_native.c [ALSA] pcm_native: lockdep warning when launching jack 2007-05-11 16:55:57 +02:00
pcm_timer.c [ALSA] Remove xxx_t typedefs: PCM 2006-01-03 12:17:43 +01:00
rawmidi.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
rawmidi_compat.c [ALSA] Remove xxx_t typedefs: Raw MIDI 2006-01-03 12:17:35 +01:00
rtctimer.c [ALSA] is_power_of_2 in rtctimer.c 2007-05-11 16:55:42 +02:00
sgbuf.c [ALSA] use the ALIGN macro 2006-12-20 08:55:36 +01:00
sound.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
sound_oss.c [PATCH] ALSA: Fix sysfs breakage 2007-01-29 14:32:53 -08:00
timer.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
timer_compat.c [ALSA] Remove xxx_t typedefs: Timer 2006-01-03 12:17:34 +01:00