original_kernel/sound
Arjan van de Ven c6482dde1c [PATCH] fix AB-BA deadlock inversion at cs46xx_dsp_remove_scb
There is a code sequence where the locking is substream->self_group.lock
-> ins->scbs[index].lock

substream->self_group.lock is interrupt safe, and taken from irq context
as well (trace is snipped for brevity)

so what can happen is

   cpu 0                   	cpu 1
   user context			user context

				take ins->scbs[index].lock without disabling interrupts

   get substream->self_group.lock (irqsafe)
   try to get ins->scbs[index].lock (spins)

				interrupt happens
				try to get substream->self_group.lock (spins)

which is an obvious AB-BA deadlock

fix is to just take the lock with _irqsafe

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Jaroslav Kysela <perex@suse.cz>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-07-04 10:24:57 -07:00
..
aoa [POWERPC] Add new interrupt mapping core and change platforms to use it 2006-07-03 21:36:01 +10:00
arm [PATCH] irq-flags: sound: Use the new IRQF_ constants 2006-07-02 13:58:54 -07:00
core [PATCH] lockdep: annotate sound/core/seq/seq_device.c 2006-07-03 15:27:08 -07:00
drivers [PATCH] irq-flags: sound: Use the new IRQF_ constants 2006-07-02 13:58:54 -07:00
i2c [ALSA] ak4xxx-adda - Code clean-up 2006-06-28 19:31:09 +02:00
isa [PATCH] irq-flags: sound: Use the new IRQF_ constants 2006-07-02 13:58:54 -07:00
mips [PATCH] irq-flags: sound: Use the new IRQF_ constants 2006-07-02 13:58:54 -07:00
oss [POWERPC] Add new interrupt mapping core and change platforms to use it 2006-07-03 21:36:01 +10:00
parisc
pci [PATCH] fix AB-BA deadlock inversion at cs46xx_dsp_remove_scb 2006-07-04 10:24:57 -07:00
pcmcia [ALSA] sound/vxpocket: fix printk warning 2006-06-22 21:34:15 +02:00
ppc [POWERPC] Add new interrupt mapping core and change platforms to use it 2006-07-03 21:36:01 +10:00
sparc [PATCH] sparc: resource warning fix 2006-07-03 15:27:00 -07:00
synth [ALSA] NULL pointer dereference in sound/synth/emux/soundfont.c 2006-06-22 21:34:05 +02:00
usb [ALSA] usb-audio support for Turtle Beach Roadie 2006-06-28 19:30:39 +02:00
Kconfig [ALSA] snd-aoa: add snd-aoa 2006-06-22 21:34:38 +02:00
Makefile [ALSA] fix build failure due to snd-aoa 2006-06-28 19:30:48 +02:00
last.c
sound_core.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
sound_firmware.c