From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757326AbbE2UvB (ORCPT ); Fri, 29 May 2015 16:51:01 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56404 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757298AbbE2Uus (ORCPT ); Fri, 29 May 2015 16:50:48 -0400 Date: Fri, 29 May 2015 13:50:45 -0700 From: Andrew Morton To: Petr Mladek Cc: Frederic Weisbecker , Steven Rostedt , Dave Anderson , "Paul E. McKenney" , Kay Sievers , Jiri Kosina , Michal Hocko , Jan Kara , linux-kernel@vger.kernel.org, Wang Long , peifeiyue@huawei.com, dzickus@redhat.com, morgan.wang@huawei.com, sasha.levin@oracle.com Subject: Re: [PATCH 00/10] printk: Avoid deadlock in NMI + vprintk_emit() cleanup Message-Id: <20150529135045.09d87c7ab98bf26dec95c8b3@linux-foundation.org> In-Reply-To: <1432557993-20458-1-git-send-email-pmladek@suse.cz> References: <1432557993-20458-1-git-send-email-pmladek@suse.cz> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 May 2015 14:46:23 +0200 Petr Mladek wrote: > The main source of deadlocks caused by printk() in NMI context has been > solved by the commit a9edc88093287 ("x86/nmi: Perform a safe NMI stack > trace on all CPUs"). > > But there are still few warnings printed in the NMI code that could > case a deadlock. For example, see the freeze discussed at > https://lkml.org/lkml/2015/5/20/481 I'm not (yet) convinced that we want the entire patchset btw. Do we really want to try to semi-support printk from NMI? With a rather nasty set of hacks? Why not just delete the offending printks?