From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756960Ab2FPMva (ORCPT ); Sat, 16 Jun 2012 08:51:30 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:33741 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751121Ab2FPMv3 (ORCPT ); Sat, 16 Jun 2012 08:51:29 -0400 Message-ID: <1339851087.11656.3.camel@joe2Laptop> Subject: Re: [PATCH] printk: Add printk_flush() to force buffered text to console From: Joe Perches To: Ingo Molnar Cc: Greg Kroah-Hartman , Fengguang Wu , Steven Rostedt , LKML , Linus Torvalds , "kay.sievers" , "Paul E. McKenney" , Ingo Molnar , Andrew Morton Date: Sat, 16 Jun 2012 05:51:27 -0700 In-Reply-To: <20120616065903.GA24594@gmail.com> References: <1339649173.13377.191.camel@gandalf.stny.rr.com> <20120614045930.GA10508@kroah.com> <1339671715.13377.209.camel@gandalf.stny.rr.com> <20120614154153.GD17140@kroah.com> <1339693625.13377.242.camel@gandalf.stny.rr.com> <20120615042233.GA10973@localhost> <20120615043017.GA9587@kroah.com> <20120615120430.GB23681@gmail.com> <20120615231318.GD8205@kroah.com> <20120616065903.GA24594@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2012-06-16 at 08:59 +0200, Ingo Molnar wrote: > * Greg Kroah-Hartman wrote: > > On Fri, Jun 15, 2012 at 02:04:30PM +0200, Ingo Molnar wrote: > > > These printk's are useful, are used for a specific (albeit > > > limited) purpose and were and continue to be useful in that > > > role. > > > > > > The changes Steve bisected to broke this use of printk(). > > > > And note, fixed others :) > > Sorry, the "we fix some bugs and introduce others" stance is not > a valid response to a regression. Either fix *all* regressions > or revert the original change. Simple and robust policy, isn't > it? > > > > Please apply Steve's fix, fix it yourself or revert the > > > changes that regressed printk(). > > > > I thought Steve's patch was just a RFC thing, is it really > > something that everyone wants to see applied? > > You mean the adding of an API to flush buffered output when > that's the desired outcome? Why the heck should we *not* want > that? Either I'm the weird one or you are being difficult ;-) The API might be better as a global flag not a per-site flush. Maybe printk_is_buffered(true/false)