[PATCH] spufs: serialize sys_spu_run per spu
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Jan 2006 19:31:24 +0000 (20:31 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:44:39 +0000 (15:44 +1100)
commit5ef8224aaa9220bfecb362f0802cf78aad47c02a
tree3288b9510d4ab36d627cf85f1b4160a6d8ff9823
parente80358ad8606382154d97165121602dfae213e4a
[PATCH] spufs: serialize sys_spu_run per spu

During an earlier cleanup, we lost the serialization
of multiple spu_run calls performed on the same
spu_context. In order to get this back, introduce a
mutex in the spu_context that is held inside of spu_run.

Noticed by Al Viro.

Signed-off-by: Arnd Bergmann <arndb@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/spufs.h