[PATCH] spufs: fix locking in spu_acquire_runnable
authorArnd Bergmann <arnd@arndb.de>
Wed, 4 Jan 2006 19:31:21 +0000 (20:31 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:44:35 +0000 (15:44 +1100)
commit762cf6dac2623473e83bb271f2bbe97d2355c64d
tree51871b65240062fc9442965923f710f0782b4e34
parentc902be71dc6d5e8473bd021feafc8c3608e2b82a
[PATCH] spufs: fix locking in spu_acquire_runnable

We need to check for validity of owner under down_write,
down_read is not enough.

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