From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [Patch] avoid deadlock during console output Date: Mon, 09 Mar 2009 08:28:13 +0000 Message-ID: References: <49B4B4B1.9060505@fujitsu-siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49B4B4B1.9060505@fujitsu-siemens.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 09/03/2009 06:18, "Juergen Gross" wrote: > Hmm, do you think your patch is okay? > tasklet_schedule is taking another lock and uses BUG_ON then... > I would suggest to modify tasklet_schedule: I can live with the error patch of BUG_ON() not working in this one case. I don't think releasing the lock suffices anyway, as we'll just end up in a recursive loop until the hypervisor stack overflows. The BUG_ON() here is more for informative code annotation than because it's at all likely to fire. It perhaps makes sense to disable the tasklet_schedule() based on a flag set in console_force_unlock(). That would at least allow NMI-based watchdog to print if we did ever hit the BUG_ON() deadlock (or any other crash while the tasklet lock is held). -- Keir