Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37027455rwd; Tue, 11 Jul 2023 08:32:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlEAKgs3rfalkePE8fr4Y/MvggwhUrUWN9OROUBn+ka2V/pK08TgD1EoRPsLTk4rl5LakZXa X-Received: by 2002:a05:6a00:1a15:b0:680:f6fe:8908 with SMTP id g21-20020a056a001a1500b00680f6fe8908mr14295283pfv.9.1689089571634; Tue, 11 Jul 2023 08:32:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689089571; cv=none; d=google.com; s=arc-20160816; b=EWcSLBtX+N2oQ/tA6g0+RxyO2yWEsi1Lo1/n2Hc9I35YJ48DeArXKq3eKksypD0gxW 72fp2mEE/CFEep8j/neKV0NCbR8HEoqqp8uXv5n0+kiecEmpo/PZJ5R+3ngSj/K7rm+x TDBZQSAumD3uJq5yq3ywaKt202ADn13osIk0av9JXwtPRTtUrs1FeCy/pnKyEWZ5whRZ 1bBbnfEDC3XZBjdSS5tyNLXfXWDiuz+G8RckHyoXzXKQ8iDSkgeyVOSL1PHnlfPDHnTa as2HYLwtjlwuM+JcwkUhgz/lDiTok/e41NNTH+kPm/hOArC3gRqo68kKxitdyYnf67jX 3F8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vs4qA8EHKpWrrs724/r+Ntyl1sy3Sa4BdLzmqxrmols=; fh=c1Pr3Rj0fUqvk+yZnXW5/iTq3p2X7hnmgvsxZ16pUFY=; b=ldk+fWas3mIJuD3bwHFLpnFjZyLf1G+ihuviXu85iUHRsNDhP2Ln54WoBlB0CT4n/E bF+/uyVpD1GZEiCeiCIYKZYED/ZmbRvJQmruofpW7I07eYP7oXMGhL+jGQ94nlviz5Ee iyQJKDef8FN167zDwruQsvFoamhTC6G0pDepbjJfNFizcnukAGRw5Q3sqtBifQkxdY0f MzU/8kj1omDlCgbk6XQ/sdjrMxqAiImWscZlZuVWjqV6FX09KroHt22NJKiYMnyZFDQC I4AT68VlfTplbaNIZqx5SKnBAMgQAaK9f2JFAeSj69cHuBAVqxYp/Em0NUlOl2V9xa4Q LTKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Oe9lje1D; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cb13-20020a056a00430d00b0068273fe79fdsi1610081pfb.163.2023.07.11.08.32.39; Tue, 11 Jul 2023 08:32:51 -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=@chromium.org header.s=google header.b=Oe9lje1D; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231931AbjGKP04 (ORCPT + 99 others); Tue, 11 Jul 2023 11:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjGKP0z (ORCPT ); Tue, 11 Jul 2023 11:26:55 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7CBB0 for ; Tue, 11 Jul 2023 08:26:52 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1b8a462e0b0so29453095ad.3 for ; Tue, 11 Jul 2023 08:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689089211; x=1691681211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vs4qA8EHKpWrrs724/r+Ntyl1sy3Sa4BdLzmqxrmols=; b=Oe9lje1D0rqWFzPwSnelUVe3EulKewL6USIFHlyNLpVDRm03xIy3x5kVvmDrE3awyN En1wldO5rRyYJU9mL82ylS4fMvP0JSGytZig6o3rBSd43cVCYgE9tX3E0+L1laMHZ4Ed n8w3HrMXHzp01JhuuOaNk8a/c9sCxDZ+E+hOg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689089211; x=1691681211; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vs4qA8EHKpWrrs724/r+Ntyl1sy3Sa4BdLzmqxrmols=; b=ia0XUr6afAvL+YgvByzie+LoTUxPNqI6U9VsA2y1Cl1jfNl9QqnjcHx3T8S+sO0VUN JTIUzfA3FdtMIBJ2MWDk4pm5RjMfKS5zBOt0TskYKjS204qYjp1UemNfspgUg0ql+4b2 t45m/isxid/4nb8QlLNTAImvD599KJSZ/y1Nsbigxry+hnLgK/g55HH/KvF5QI1/1z6m XnLS4t7ODYt2xDS/x2KZr6NXNsu3eaqDLQhpq64Ze9LxoaA5jpg5c0uxYdL+Y6tWh6G3 qwT4011yL3acGSlE1E+wBwG4dWD5fQlzITt/DjpSPxbnYAF2dgRyTH0Dv9tUh082NiCi EQrQ== X-Gm-Message-State: ABy/qLZ3f/ryKny3LqjXVTQ01XnvBGpA5JIw/9hT+QkIW4LIK70h3qbP if6vD3DAVyBhOWaKYY//A3K16grFGuXek2oG2N2AGA== X-Received: by 2002:a17:903:110d:b0:1b3:d6c8:7008 with SMTP id n13-20020a170903110d00b001b3d6c87008mr15600700plh.57.1689089211394; Tue, 11 Jul 2023 08:26:51 -0700 (PDT) Received: from google.com ([110.11.159.72]) by smtp.gmail.com with ESMTPSA id h9-20020a170902748900b001b8062c1db3sm2064950pll.82.2023.07.11.08.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 08:26:51 -0700 (PDT) Date: Wed, 12 Jul 2023 00:26:46 +0900 From: Sergey Senozhatsky To: John Ogness Cc: Sergey Senozhatsky , Petr Mladek , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH printk v2 4/5] printk: Add per-console suspended state Message-ID: <20230711152646.GE12154@google.com> References: <20230710134524.25232-1-john.ogness@linutronix.de> <20230710134524.25232-5-john.ogness@linutronix.de> <20230711150819.GC12154@google.com> <877cr6pj40.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <877cr6pj40.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FSL_HELO_FAKE, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 (23/07/11 17:29), John Ogness wrote: [..] > > Interesting. console_locked previously would not be set if > > console is suspended, but now it's always set, which in theory > > changes the way WARN_CONSOLE_UNLOCKED() macro works in some > > cases? > > Yes, Petr mentioned [0] this during the v1 review. His direct comment: > > "console_locked" seems to be used only in WARN_CONSOLE_UNLOCKED(). > I could imagine a corner case where, for example, "vt" code does > not print the warning because it works as it works. But it does > not make much sense. IMHO, such a code should get fixed. And it > is just a warning after all. > > And his final comment in that thread: > > I believe that @console_suspended is not longer needed. > Let's replace it with the per-console flag and do not worry > about races. Oh, thanks for the pointers! > [0] https://lore.kernel.org/lkml/ZAieQtcs7YEuCCDa@alley