From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Jeremy Kerr To: cbe-oss-dev@ozlabs.org Subject: Re: [Cbe-oss-dev] 2.6.26-rc6 kernel bug on PS3? Date: Thu, 26 Jun 2008 10:46:16 +1000 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Message-Id: <200806261046.16763.jk@ozlabs.org> Cc: linuxppc-dev@ozlabs.org, Stefan Wald List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Stefan, > Application hangs after a while defunct and dmesg output looks like > d.txt. (See attached file: d.txt) Looks like this is caused by doing the mmput() while the state mutex is held in spu_forget. In your case, the mm is the final reference to the context, so this is resulting in a destroy_spu_context, which requires the state mutex :) I'm going to take a look at the sequencing of spu_forget, but would like to write a test case. Could you tell us about the exit path of your program? Cheers, Jeremy