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)
commit31705e21f9b5a0628c043f88ff4d20488b47b8ab
tree220d1a8c0a83fec0450b7944d1af94ff9902b77f
parent467017b83b5bc445be5d275cf727b4f7ba3d2b2d
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