[Cbe-oss-dev] [PATCH 16/18] powerpc/spufs: Fix double lock on cbe_spu_info[node].list_mutex
Andre Detsch
adetsch at br.ibm.com
Thu Dec 11 06:40:43 EST 2008
put_spu_context cannot be called with the cbe_spu_info[].list_mutex
spin_lock being hold.
Signed-off-by: Andre Detsch <adetsch at br.ibm.com>
---
arch/powerpc/platforms/cell/spufs/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/platforms/cell/spufs/sched.c b/arch/powerpc/platforms/cell/spufs/sched.c
index 7b4852f..3163239 100644
--- a/arch/powerpc/platforms/cell/spufs/sched.c
+++ b/arch/powerpc/platforms/cell/spufs/sched.c
@@ -1293,8 +1293,8 @@ static int spusched_thread(void *unused)
mutex_unlock(mtx);
preempted += spusched_tick(gang, ctx,
preempted < maxcontexts);
- mutex_lock(mtx);
put_spu_context(ctx);
+ mutex_lock(mtx);
active++;
}
}
--
1.5.4.3
More information about the cbe-oss-dev
mailing list