From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35C18C32789 for ; Tue, 6 Nov 2018 12:57:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 054722083D for ; Tue, 6 Nov 2018 12:57:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 054722083D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388046AbeKFWXD (ORCPT ); Tue, 6 Nov 2018 17:23:03 -0500 Received: from mx2.suse.de ([195.135.220.15]:50140 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387596AbeKFWXC (ORCPT ); Tue, 6 Nov 2018 17:23:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7D4BCB64B; Tue, 6 Nov 2018 12:57:55 +0000 (UTC) Date: Tue, 6 Nov 2018 13:57:53 +0100 From: Petr Mladek To: Sergey Senozhatsky Cc: Peter Zijlstra , Tetsuo Handa , Sergey Senozhatsky , Dmitriy Vyukov , Steven Rostedt , Alexander Potapenko , Fengguang Wu , Josh Poimboeuf , LKML , Linus Torvalds , Andrew Morton , linux-mm@kvack.org, Ingo Molnar , Will Deacon Subject: Re: [PATCH 3/3] lockdep: Use line-buffered printk() for lockdep messages. Message-ID: <20181106125753.nhuztqefadglbvec@pathway.suse.cz> References: <1541165517-3557-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <1541165517-3557-3-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp> <20181102133629.GN3178@hirez.programming.kicks-ass.net> <20181106083856.lhmibz6vrgtkqsj7@pathway.suse.cz> <20181106090544.GA516@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181106090544.GA516@jagdpanzerIV> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2018-11-06 18:05:44, Sergey Senozhatsky wrote: > On (11/06/18 09:38), Petr Mladek wrote: > > > > If you would want to avoid buffering, you could set the number > > of buffers to zero. Then it would always fallback to > > the direct printk(). This comment was a hint for Peter and his workarounds. He ignores most of printk() code and writes messages directly to the serial console. > This printk-fallback makes me wonder if 'cont' really can ever go away. > We would totally break cont printk-s that trapped into printk-fallback; > as opposed to current sometimes-cont-works-just-fine. It could break things totally only when the new approach completely fails. I you have any doubts or suggestions then please comment on the patch adding the API. Best Regards, Petr