Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757877AbbFBJxI (ORCPT ); Tue, 2 Jun 2015 05:53:08 -0400 Received: from cantor2.suse.de ([195.135.220.15]:55573 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756353AbbFBJw4 (ORCPT ); Tue, 2 Jun 2015 05:52:56 -0400 Date: Tue, 2 Jun 2015 11:52:53 +0200 (CEST) From: Jiri Kosina To: "long.wanglong" cc: Jan Kara , Andrew Morton , Petr Mladek , Frederic Weisbecker , Steven Rostedt , Dave Anderson , "Paul E. McKenney" , Kay Sievers , Michal Hocko , linux-kernel@vger.kernel.org, peifeiyue@huawei.com, dzickus@redhat.com, morgan.wang@huawei.com, sasha.levin@oracle.com, xuhanbing@huawei.com Subject: Re: [PATCH 00/10] printk: Avoid deadlock in NMI + vprintk_emit() cleanup In-Reply-To: <556D7B74.2070007@huawei.com> Message-ID: References: <1432557993-20458-1-git-send-email-pmladek@suse.cz> <20150529135045.09d87c7ab98bf26dec95c8b3@linux-foundation.org> <20150601130616.GE20288@quack.suse.cz> <556D7B74.2070007@huawei.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 710 Lines: 21 On Tue, 2 Jun 2015, long.wanglong wrote: > How about replacing printk function earlier? we can replace printk > function before we calling default_do_nmi(arch/x86/kernel/nmi.c) and > replace back after calling. > > Is it a feasible solution? or does it introduce other problems? This has been already discussed in the past when we were fixing the NMI-based stackdumping. See http://marc.info/?l=linux-kernel&m=141640218702588&w=2 -- Jiri Kosina SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/