]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: shdma: synchronize RCU before freeing, simplify spinlock
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 2 May 2011 07:59:02 +0000 (07:59 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 23 May 2011 03:49:59 +0000 (12:49 +0900)
commita6242e0946423dc70ae8cb442ee1c10d99481b2c
tree220d1a8c0a83fec0450b7944d1af94ff9902b77f
parent0414d91362bed1c220d5e4dac576bac01d36e330
dmaengine: shdma: synchronize RCU before freeing, simplify spinlock

List elements, deleted using list_del_rcu(), cannot be freed without
synchronising RCU. Further, the spinlock, used to protect the RCU
writer, is called in process context, so, we don't have to save flags.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/dma/shdma.c