From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933210AbdCWIv6 (ORCPT ); Thu, 23 Mar 2017 04:51:58 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37554 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbdCWIv5 (ORCPT ); Thu, 23 Mar 2017 04:51:57 -0400 Date: Thu, 23 Mar 2017 09:51:43 +0100 From: Peter Zijlstra To: Sergey Senozhatsky Cc: Steven Rostedt , Petr Mladek , Andrew Morton , Linus Torvalds , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC][PATCH 0/4] printk: introduce printing kernel thread Message-ID: <20170323085143.2cpxgtlmhhrvrcbw@hirez.programming.kicks-ass.net> References: <20170306124554.828-1-sergey.senozhatsky@gmail.com> <20170322175920.bcltzwega6dts2n4@hirez.programming.kicks-ass.net> <20170323040958.GB2519@jagdpanzerIV.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170323040958.GB2519@jagdpanzerIV.localdomain> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2017 at 01:09:58PM +0900, Sergey Senozhatsky wrote: > Hello Peter, > > thanks for taking a look. > > On (03/22/17 18:59), Peter Zijlstra wrote: > > On Mon, Mar 06, 2017 at 09:45:50PM +0900, Sergey Senozhatsky wrote: > > > sysrq is potentially even trickier. can we always wake_up() kernel > > > thread from sysrq? there probably might be cases when we can't rely > > > on the scheduler. > > > > sysrq runs from interrupt context, right? Should be able to do wakeups. > > what I though about was - > what if there are 'misbehaving' higher prio tasks all the time? > the existing sysrq would attempt to do printing from irq context > so it doesn't care about run queues. > > does it make sense to you? Ah, that's what you meant. Yeah, dunno, I'm still unconvinced about the whole printk thread thing. Also those function names are horrifically long.