android_kernel_xiaomi_sm8350/sound/pci/cs46xx
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
..
imgs
cs46xx_image.h
cs46xx_lib.c [PATCH] irq-flags: sound: Use the new IRQF_ constants 2006-07-02 13:58:54 -07:00
cs46xx_lib.h
cs46xx.c [ALSA] Remove zero-initialization of static variables 2006-06-22 21:33:45 +02:00
dsp_spos_scb_lib.c [PATCH] fix AB-BA deadlock inversion at cs46xx_dsp_remove_scb 2006-07-04 10:24:57 -07:00
dsp_spos.c [ALSA] Remove unneeded read/write_size fields in proc text ops 2006-06-22 21:33:09 +02:00
dsp_spos.h
Makefile