Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3581836imj; Tue, 19 Feb 2019 06:05:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZIvyPX7VgbNL2+zfvzW0zpo/JM186dHrgs7f1IMwKBJi4NZrc8sHhO3tCgB6SR8c25gWRK X-Received: by 2002:aa7:8045:: with SMTP id y5mr29412359pfm.62.1550585153039; Tue, 19 Feb 2019 06:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550585153; cv=none; d=google.com; s=arc-20160816; b=XLNzGJV+XEq2bfim9UU9NBDTsrOw3sBVPlel5/zVteXqjRnHj3EqZpzpbBIKX7Y23I q+AJKXHgrhdabV+3EuKvmLnKlqSyVGYomrr39PiKDDc9KBcX8V82KJWsoOnfrs7lccPH +AJ+ro6KmAL2/IAS7WDDybuOMYkQZeIRp08veoWVkb6Jbgw6lapzq2xAwLRTFD0cdN0U n/Av9tEwoMIzf+YHIFz2sihakr/H/Ej++osYGp8x6Tavb6gIai+xRtupwr4mJP9WtAkx 9dnYlx4/EI6jisLyzGNhKjocP9zt9v30k4a1gh8FNjS/8lYN8BjrBgYtWoZ0tqLAZNUJ EMOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NLmBtWl/zw2HhDAMDzwLWa0RBvyrTpPPrrTxFUmsqAw=; b=W5jViij/227o/GzcPVp5m9ybU3K0pD/lOFYyuMYAdxvNtEl14tPfzUnBKVeQep+ygX W7agf2l0q/ICgKegACcKUQdpo2SpQOz7FAx7v5Vy9uaOxw7JDBP9A0SvfQyV49m7T/Fk xsvxDjxn3QZtEATbSANz3ozSdy378Zczi1TuYy6Z2muySxI+rlSXjdwhfW8F+ZMJMcym jQMtXGss2l1W+MfacK6jaBfZvVocW8gNO1nnsAbed81EdpKnZQ64iQ7SXrnS28w9jG33 r0g1IB4fLpDdhTq3uB19lIXbuAwRdji95lIAEaHSv078UWfMrYFpLS9QKSYmA+c3hwLU 3ckg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si15620170pgr.331.2019.02.19.06.05.37; Tue, 19 Feb 2019 06:05:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728888AbfBSODU (ORCPT + 99 others); Tue, 19 Feb 2019 09:03:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:59764 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725845AbfBSODU (ORCPT ); Tue, 19 Feb 2019 09:03:20 -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 CEB16AF51; Tue, 19 Feb 2019 14:03:18 +0000 (UTC) Date: Tue, 19 Feb 2019 15:03:18 +0100 From: Petr Mladek To: John Ogness Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Sergey Senozhatsky , Steven Rostedt , Daniel Wang , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , Alan Cox , Jiri Slaby , Peter Feiner , linux-serial@vger.kernel.org, Sergey Senozhatsky Subject: Re: [RFC PATCH v1 09/25] printk: remove exclusive console hack Message-ID: <20190219140318.wnk2dbgvf3i5qdsb@pathway.suse.cz> References: <20190212143003.48446-1-john.ogness@linutronix.de> <20190212143003.48446-10-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190212143003.48446-10-john.ogness@linutronix.de> 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 2019-02-12 15:29:47, John Ogness wrote: > In order to support printing the printk log history when new > consoles are registered, a global exclusive_console variable is > temporarily set. This only works because printk runs with > preemption disabled. > > When console printing is moved to a fully preemptible dedicated > kthread, this hack no longer works. We need to keep this functionality. Otherwise, people would miss the beginning of the log on some consoles. Kernel does not know what console is important for monitoring or debugging. Fortunately, it should be easy to implement this with the new ring buffer a much cleaner way. Anyway, you need to switch to the new implementation in a single patch to avoid regression. I would personally postpone this into a separate patchset. Best Regards, Petr