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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 7D30BC433C1 for ; Mon, 29 Mar 2021 15:14:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 315D261936 for ; Mon, 29 Mar 2021 15:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230434AbhC2PNx (ORCPT ); Mon, 29 Mar 2021 11:13:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbhC2PNd (ORCPT ); Mon, 29 Mar 2021 11:13:33 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EDD5C061574 for ; Mon, 29 Mar 2021 08:13:33 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1617030811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lAwcHh6VjZxvqu3eesE1syVGkWZBlzSGzupXo8CqfAQ=; b=IHRwqqJ/d8imEGKqIbKlA/qGFQR4bQ7Mhspabxdc3MX3R7eN5G7MQ4m5yMDEPE07Lv+phx zHEhhYkohJ8y/1HxidHAV34j6T1NDKgbBGWl861sk+fSQTqFBgAyx+mn+iamm2DCjBxNr8 FSS5Pe4mAqzC65UdyPCNXbajLcCGJ7RH28rT2g8VbNzOtgT/36qjtM0xobnnIkx1daTNY6 ct98FPnxEMo/We+aNUTa0BhSI17YnG4onDaQqN6q3BTiEy5TWC9ZhccI9GrfEQEEV2vbiJ RAdsnOm6LcHaaNMaxzoJHU7fUWyXNWeo2tkJ24JgIIySm8sS4q3ecgzXOE6HTg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1617030811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=lAwcHh6VjZxvqu3eesE1syVGkWZBlzSGzupXo8CqfAQ=; b=U8WYssHxW3bwbN8MrVn1MezAusXrDPWH1/e3X2mo5XDOhiiwBibO2wcYpGLnSm7tmW4Q/W +BAOUaJ5F1W6NoAQ== To: Petr Mladek Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Eric Biederman , Nicholas Piggin , Christophe Leroy , Alistair Popple , Jordan Niethe , Peter Zijlstra , =?utf-8?Q?C?= =?utf-8?Q?=C3=A9dric?= Le Goater , Andrew Morton , Kees Cook , Yue Hu , Alexey Kardashevskiy , Rafael Aquini , Tiezhu Yang , "Guilherme G. Piccoli" , "Paul E. McKenney" , linuxppc-dev@lists.ozlabs.org, kexec@lists.infradead.org Subject: Re: [PATCH next v1 2/3] printk: remove safe buffers In-Reply-To: <87sg4e6lo5.fsf@jogness.linutronix.de> References: <20210316233326.10778-1-john.ogness@linutronix.de> <20210316233326.10778-3-john.ogness@linutronix.de> <87pmzmi2xm.fsf@jogness.linutronix.de> <87sg4e6lo5.fsf@jogness.linutronix.de> Date: Mon, 29 Mar 2021 17:13:30 +0200 Message-ID: <87o8f26lid.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-29, John Ogness wrote: >> Will you call console write() callback with irq enabled from the >> kthread? > > No. That defeats the fundamental purpose of this entire rework > excercise. ;-) Sorry, I misread your question. The answer is "yes". We want to avoid a local_irq_save() when calling into console->write(). John Ogness