summaryrefslogtreecommitdiffstats
path: root/include/asm-cris
diff options
context:
space:
mode:
authorArjan van de Ven2006-07-04 12:07:22 +0200
committerLinus Torvalds2006-07-04 19:24:57 +0200
commitc6482dde1c2811afba289b2344268f850595f350 (patch)
treebfd2ab0c2bcfe6fe4de64bab40f2c19f25131a97 /include/asm-cris
parent[PATCH] mthca: initialize send and receive queue locks separately (diff)
downloadkernel-qcow2-linux-c6482dde1c2811afba289b2344268f850595f350.tar.gz
kernel-qcow2-linux-c6482dde1c2811afba289b2344268f850595f350.tar.xz
kernel-qcow2-linux-c6482dde1c2811afba289b2344268f850595f350.zip
[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>
Diffstat (limited to 'include/asm-cris')
0 files changed, 0 insertions, 0 deletions