From patchwork Wed Dec 10 19:04:29 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Detsch X-Patchwork-Id: 13294 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 50F44DDFBE for ; Thu, 11 Dec 2008 06:18:53 +1100 (EST) X-Original-To: cbe-oss-dev@ozlabs.org Delivered-To: cbe-oss-dev@ozlabs.org Received: from igw2.br.ibm.com (igw2.br.ibm.com [32.104.18.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "igw2.br.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 1F0BD474C1 for ; Thu, 11 Dec 2008 06:04:37 +1100 (EST) Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw2.br.ibm.com (Postfix) with ESMTP id 03B1D17F491 for ; Wed, 10 Dec 2008 15:47:43 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mBAK468F2830468 for ; Wed, 10 Dec 2008 17:04:06 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mBAJ4WBh016872 for ; Wed, 10 Dec 2008 17:04:32 -0200 Received: from [9.8.13.23] ([9.8.13.23]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mBAJ4TZq016705 for ; Wed, 10 Dec 2008 17:04:30 -0200 Date: Wed, 10 Dec 2008 17:04:29 -0200 From: adetsch@br.ibm.com Message-Id: <200812101904.mBAJ4TZq016705@d24av01.br.ibm.com> To: cbe-oss-dev@ozlabs.org Subject: [Cbe-oss-dev] (no subject) X-BeenThere: cbe-oss-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Discussion about Open Source Software for the Cell Broadband Engine List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: cbe-oss-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org From 3b490b0d482a1b79bbd002abbc4ac5545a7bd4ef Mon Sep 17 00:00:00 2001 In-Reply-To: <200812101654.05091.adetsch@br.ibm.com> References: <200812101654.05091.adetsch@br.ibm.com> From: Andre Detsch Date: Wed, 10 Dec 2008 17:04:29 -0200 Subject: [PATCH 16/18] powerpc/spufs: Fix double lock on cbe_spu_info[node].list_mutex MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812101704.29716.adetsch@br.ibm.com> put_spu_context cannot be called with the cbe_spu_info[].list_mutex spin_lock being hold. Signed-off-by: Andre Detsch --- 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++; } }