Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3144759iog; Mon, 20 Jun 2022 12:24:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tymqeMF2ERcvIS/b1bgaMTF0smW+TfYtEhOjAac345Tc21lDW1O4r99by+/5WxZYTBeoah X-Received: by 2002:a17:903:11d2:b0:167:8a0f:8d33 with SMTP id q18-20020a17090311d200b001678a0f8d33mr25352577plh.95.1655753080395; Mon, 20 Jun 2022 12:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655753080; cv=none; d=google.com; s=arc-20160816; b=ooA8ovLAGWrktK2yPHfAtk5y84qTHA+ATK9vuHM45bj2s9KRjsQ5lcxX5E415iU9wt NUjLE7okLpGniPjMap2Wc/MdSvkCOaT0i+FGw9+Z2cASAQKNKgy0gKJneImiNGGX25pt IwqZBYrz4pUAt9Qh+Gi6MJejRTAtbfqpUHV2PgXDbYw0jrm3sklRbiVbJ1TFuYYVmzXk 9Ufsct9ldWs5fRpJSTk65Cd8kDEl0EAgMIC6dqv5jvmcWS7fGuraP+s8fnuR4TyQGM3o nzyDb8K5PavH01F5bKo6oBS5SjpdIAGCWAMSwL35749XE81wF9OuKxVoAHw9Ce9cPdwc HD5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kUp+PNGmopa6wjJCCYe5rc5X0y2p8CQaDjakccGgBqc=; b=ZI2uOdIBUd1xmYs7WoGdQI2VpbPkTLOJZTSbSAHFGCeUe0FBmy1W+06gM2G1w1vTLC qRh2Q4PNPPv5t3EG7rSeyJWQJt0hbo43hoKQDnOcF1bZ1cELmWKmkb9ugDLGsCsUDfZz ege7EQreLBcm4UNh7gHB4W6bM2kv0C/ybOrZ0XP5sdW+QWP3LaL9kafhJN+a9yRyhmYC LaUGUc0ZL26mHsziwRWcR17yqixCIBsq2bd68/4DMZPGscmNVMeBTxlrsNr1F2rnEw2o 0M3nCuAb/CwiaowKTe8m3FMaj1MNgW/HOtCuSJ36IRPmfvdqTyGZrkRg6MKyo34mYENS Q0jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=P1LdsubH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x71-20020a63314a000000b0040cd22c3811si2495229pgx.227.2022.06.20.12.24.28; Mon, 20 Jun 2022 12:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=P1LdsubH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243377AbiFTTKo (ORCPT + 99 others); Mon, 20 Jun 2022 15:10:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235833AbiFTTKl (ORCPT ); Mon, 20 Jun 2022 15:10:41 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E2715FE8 for ; Mon, 20 Jun 2022 12:10:41 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id e2so5472759edv.3 for ; Mon, 20 Jun 2022 12:10:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kUp+PNGmopa6wjJCCYe5rc5X0y2p8CQaDjakccGgBqc=; b=P1LdsubHPnGb+GxDamKofLnsHDYsAiklGk2GhwXCbH99SXMUBreN61DHgfRC6PtBO4 CG1xa4VYDygLjA2F7wWoioMY1rgP1CVzghmtfY7nvfyiXel2ZOSbCLhmmulUO1H/FgBs KgGYJXizbcsHWriiYd2cYjnksf3rafSYimv50= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kUp+PNGmopa6wjJCCYe5rc5X0y2p8CQaDjakccGgBqc=; b=NgY4xKi9zm4dBGuL4BWUGwupUcCjWY3CsL78GXygDT6BlluOqz+Rsu56MVVznpghIF n3VRUTpL651d3FFgT6kRd2+zS6VEXDyuBV59hdpYo+EjBgGCmK2CKTB/z87pj5YJuPT2 rgxitLa6YUDtYpf8dhu73KdkxrXs/paEotf6NAKmZi1RXFMu0r3U5qz6APCJI8TsOK0U 1T4UuwsrTNMqNNex1CYmTQQVgqP3CUm40NtYgYyxjudifHXIXxXR62SdSRwmRy9nP7ia Iid+e7v1UJcq3yLklajmejHDejtENyOur9qdC0TXTBCag+5hGwLmB8FeGmUMJm2igDMO yUUA== X-Gm-Message-State: AJIora8dfsMn9QnK6mOXEb9WGQQ2nqUfnU88Vu2Co6cbL6n0MVMQhr8M dNAfAWT1Wje7tsx2uAsb3M84UtAqrncdPrSc X-Received: by 2002:aa7:de1a:0:b0:435:7d11:9717 with SMTP id h26-20020aa7de1a000000b004357d119717mr10530774edv.148.1655752239358; Mon, 20 Jun 2022 12:10:39 -0700 (PDT) Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com. [209.85.128.46]) by smtp.gmail.com with ESMTPSA id s15-20020a056402520f00b004358243e752sm3016411edd.5.2022.06.20.12.10.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jun 2022 12:10:38 -0700 (PDT) Received: by mail-wm1-f46.google.com with SMTP id z17so6318041wmi.1 for ; Mon, 20 Jun 2022 12:10:37 -0700 (PDT) X-Received: by 2002:a1c:5418:0:b0:39c:3552:c85e with SMTP id i24-20020a1c5418000000b0039c3552c85emr36938022wmb.68.1655752237024; Mon, 20 Jun 2022 12:10:37 -0700 (PDT) MIME-Version: 1.0 References: <20220619204949.50d9154d@thinkpad> <87r13kwawb.fsf@jogness.linutronix.de> <20220620112936.48fcb2a4@thinkpad> In-Reply-To: From: Linus Torvalds Date: Mon, 20 Jun 2022 14:10:20 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] printk/console: Enable console kthreads only when there is no boot console left To: Petr Mladek Cc: =?UTF-8?B?TWFyZWsgQmVow7pu?= , John Ogness , Linux Kernel Mailing List , Sergey Senozhatsky , Steven Rostedt , Andy Shevchenko , Rasmus Villemoes , Jan Kara , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 10:14 AM Petr Mladek wrote: > > The console kthreads uncovered several races in console drivers. I really want to make it clear that this was NOT some kind of "races in drivers". Console drivers may very well have intentionally avoided taking locks for console output, since the printk output was supposed to be serialized by printk. Don't try to make this some kind of "buggy drivers" thing. This is on printk, not on anything else. Assuming this solves all issues, I'm ok with this approach, but I really want this to be clearly about printk being buggy, no "blame the drivers" garbage. And if there are other issues coming up, we revert the whole thing entirely. Because printk is too important to play games with, and too important to try to blame drivers. Linus