From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933481AbdCaPiC (ORCPT ); Fri, 31 Mar 2017 11:38:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:34328 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933200AbdCaPiB (ORCPT ); Fri, 31 Mar 2017 11:38:01 -0400 Date: Fri, 31 Mar 2017 17:37:58 +0200 From: Petr Mladek To: Sergey Senozhatsky Cc: 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: <20170331153757.GA29537@pathway.suse.cz> References: <20170329092511.3958-1-sergey.senozhatsky@gmail.com> <20170329092511.3958-6-sergey.senozhatsky@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170329092511.3958-6-sergey.senozhatsky@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reviewed-by: Petr Mladek Best Regards, Petr