]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
powerpc/spufs: fix aff_mutex and cbe_spu_info[n].list_mutex deadlock
authorAndre Detsch <adetsch@br.ibm.com>
Thu, 24 Jul 2008 00:57:26 +0000 (10:57 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 24 Jul 2008 00:57:26 +0000 (10:57 +1000)
commit0855b543222e79cbbd9d66dd56cb54740e7d524f
tree77e6e838138d623c96e61c497417e9fc0f82100e
parent9bcab8405c98c34849c5795c717b7e6a3e2d3875
powerpc/spufs: fix aff_mutex and cbe_spu_info[n].list_mutex deadlock

Currenlt,, it is possible to lock aff_mutex and
cbe_spu_info[n].list_mutex in different orders, allowing a deadlock to
occur. With this change, aff_mutex is not taken within a list_mutex
critical section anymore.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/sched.c