]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: update master runcntl with context lock held
authorJeremy Kerr <jk@ozlabs.org>
Wed, 23 Apr 2008 04:24:27 +0000 (14:24 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 5 May 2008 03:33:43 +0000 (13:33 +1000)
commit3b90b091875c4d50618370219881c53a98cc0a3f
tree0c8183cd4dbcea455c9d4adf61a947c79696b9b3
parent45b850ca5f836e874bb5cac9199c30e0a71e7c4a
[POWERPC] spufs: update master runcntl with context lock held

Currently, we update the SPU master run control bit (ie,
spu_enable_spu) in spufs_run_spu before we grab the context mutex. This
can result in races with other processes accessing this context's
resources.

This change moves the spu_enable_spu to after we have acquired the
context lock.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/run.c