From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933468AbdDAAGH (ORCPT ); Fri, 31 Mar 2017 20:06:07 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34489 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932960AbdDAAGF (ORCPT ); Fri, 31 Mar 2017 20:06:05 -0400 Date: Sat, 1 Apr 2017 09:04:50 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Jan Kara , Andrew Morton , Linus Torvalds , Peter Zijlstra , "Rafael J . Wysocki" , Eric Biederman , Greg Kroah-Hartman , Jiri Slaby , Pavel Machek , Len Brown , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC][PATCHv2 5/8] sysrq: switch to printk.emergency mode in unsafe places Message-ID: <20170401000450.GB478@tigerII.localdomain> References: <20170329092511.3958-1-sergey.senozhatsky@gmail.com> <20170329092511.3958-6-sergey.senozhatsky@gmail.com> <20170331153757.GA29537@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170331153757.GA29537@pathway.suse.cz> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On (03/31/17 17:37), Petr Mladek wrote: > On Wed 2017-03-29 18:25:08, Sergey Senozhatsky wrote: > > It's not always possible/safe to wake_up() printk kernel > > thread from sysrq (theoretically). Thus we better switch > > printk() to emergency mode in some of the sysrq handlers, > > which allows us to immediately flush pending kernel message > > to the console. > > > > Signed-off-by: Sergey Senozhatsky > > Suggested-by: Tetsuo Handa > > It looks like a decent selection. It is pity that some of > them might produce rather long output and theoretically > cause a softlookup. But I do not know about a better solution > at the moment. In each case, it will not be worse than before > this patchset. thanks. this patch will be replaced with a more 'generic' one, which I posted in reply yo Ye Xiaolong's report. -ss