[POWERPC] spufs: Fix state_mutex leaks
commiteebead5b8ff89340dc18ceec996157d0eb7d0287
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Feb 2008 04:50:41 +0000 (8 15:50 +1100)
committerPaul Mackerras <paulus@samba.org>
Fri, 8 Feb 2008 08:52:35 +0000 (8 19:52 +1100)
tree65b88470bb8b2b14ea839234eba4c2ca3b60e587
parent592a607bbc053bc6f614a0e619326009f4b3829e
[POWERPC] spufs: Fix state_mutex leaks

Fix various state_mutex leaks.  The worst one was introduced by the
interrutible state_mutex conversion but there've been a few before
too.  Notably spufs_wait now returns without the state_mutex held
when returning an error, which actually cleans up some code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Luke Browning <lukebrowning@us.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/fault.c
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/run.c
arch/powerpc/platforms/cell/spufs/spufs.h