Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37010220rwd; Tue, 11 Jul 2023 08:20:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHu7Nf8ZFXzs7mkRh+kJZJSF1SWzSfo2LjZAfu3yuCG7lM6i2jmZQAgDEhU0xlwV77gMwaB X-Received: by 2002:a19:ca14:0:b0:4f7:4098:9905 with SMTP id a20-20020a19ca14000000b004f740989905mr11042379lfg.65.1689088851449; Tue, 11 Jul 2023 08:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689088851; cv=none; d=google.com; s=arc-20160816; b=x7zBSwAop96SUuJO9Av1iFdWTLdOBGw0Zvplg7DBT1KrNgM2MauG8DGuLLIygbDMoR YwrJGzboVdHoxoKEBdYgmBobrHoQtESwAgHhqLvXZpqyfsmTjTRWKXMAgW5hGTKDahjg Ae4aPZTAE+7qiLCxCHHPU2DLrQqC/6dXGZditVW1LH5noauqG2G0PIr5nIX3XS96q5Cp LL51kRB+Za9lprU0XbbCQwjMZNQDSdgeKhlDLJP66d3vYIz4amB+YJSeFOiEIFJv2O8n V5rxoaOLw875yta5G7xkSXG8PQ2lWZCwA4qgTlRXGsXDAOE3fUz8Bfdxc0dHjYl0u0wx dpHA== 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=K3prod4c9QA2/0vQNLICwadpog/5ZuAP2FNyp7zUh9c=; fh=/9iEFiNnac7Uh7Lni1McJWGQhJLaJQf+K/MH4mCRVoM=; b=MeAc+dqrzgJRzzwA/iw+gC5FCMOmcwekV26M5LWO42AYPA79Mn1i77x73TiXWhmsw8 eAJ8EcSWUncZ2tiEofXMAFn8O+F0GLKlwj3D05jR8H29W4dk0QlNcV5GK4+OMOl9tRqe tYZX2FyRPSweyUtxfHiw5QzRbEfznxWJFXfGQ8ZeN5hgWOpMyMEFeUTfwBzJgrFoEOBd LdjR29bfXEZw45Cc0jQSyRoNrpPDEwCKedUs2QR18OiowawGqlQopKCbgJ7Z46EGpmcn MCefnf1/HArVrFhobAv/0sIQLzLNFLSXXm+f155E3TZtgi3D0Xi+mYWq4cl8VK659Tom ziqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=B9Pr4E1C; 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 n24-20020a05640206d800b0051e0ea52f6esi2053678edy.171.2023.07.11.08.20.26; Tue, 11 Jul 2023 08:20: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=B9Pr4E1C; 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 S230197AbjGKPI4 (ORCPT + 99 others); Tue, 11 Jul 2023 11:08:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229921AbjGKPI2 (ORCPT ); Tue, 11 Jul 2023 11:08:28 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14957A0 for ; Tue, 11 Jul 2023 08:08:27 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-66872d4a141so3918729b3a.1 for ; Tue, 11 Jul 2023 08:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689088106; x=1691680106; 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=K3prod4c9QA2/0vQNLICwadpog/5ZuAP2FNyp7zUh9c=; b=B9Pr4E1CcW13FrdsOADwCuQQuj83U1Saxiu8zS72C34ueY3G+zuqMVVtG7Gp69QyuK baMuWov+4CpHjXGYpl/V4C/xMW/MhwyJNvmkH5fkbXtWO7RlVG1yX7D3kLnsis1Z8zTr ZvtpuhVmxRtn2aO1VtzHZ3qZJoEgQvy5W7oow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689088106; x=1691680106; 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=K3prod4c9QA2/0vQNLICwadpog/5ZuAP2FNyp7zUh9c=; b=bEkzeOOxAGYbnKz5jgbKxe7mcghe+INKd7f62jw4KV5BEW+Nk6P4F5LIa9rB+pSy84 tscHvpQap0Md8GcZLsfmu4td19QxF8cVkQt8+S1x7MjLoWR6v0kRl1kwdns+cNbbmE+O FzvAOPbp8nal2tw/LqolruV29O8AnjO/c839Kowr9m9Q2K1oMmblxQPeT/O4UMXT753m e9KP98jVBVuEuzFUTK+bovn1EfVgCgIjEGuV46g113GErmtWTmCzP8zEhL/T5xnFHtoO x7n4rFbThMSk1SBS58Tqfr9f+c2EsBFE8OZNULHf5NcKnQ3RpnfXNycsrBSP+Ytu92E4 flIA== X-Gm-Message-State: ABy/qLZkj+tj/bzIEoWJtrBqpUBS/IQl2j9PikVOgdqELMnumuQEykBP fLMAb1GrV9esOH7Q7FakvHMIZA== X-Received: by 2002:a05:6a20:387:b0:12d:3d9e:2934 with SMTP id 7-20020a056a20038700b0012d3d9e2934mr11073563pzt.44.1689088106492; Tue, 11 Jul 2023 08:08:26 -0700 (PDT) Received: from google.com ([110.11.159.72]) by smtp.gmail.com with ESMTPSA id g12-20020a63ad0c000000b00553d42a7cb5sm1700436pgf.68.2023.07.11.08.08.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 08:08:25 -0700 (PDT) Date: Wed, 12 Jul 2023 00:08:19 +0900 From: Sergey Senozhatsky To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , 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: <20230711150819.GC12154@google.com> References: <20230710134524.25232-1-john.ogness@linutronix.de> <20230710134524.25232-5-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230710134524.25232-5-john.ogness@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/10 15:51), John Ogness wrote: [..] > @@ -2623,8 +2647,6 @@ void console_lock(void) > msleep(1000); > > down_console_sem(); > - if (console_suspended) > - return; > console_locked = 1; > console_may_schedule = 1; > } > @@ -2645,10 +2667,6 @@ int console_trylock(void) > return 0; > if (down_trylock_console_sem()) > return 0; > - if (console_suspended) { > - up_console_sem(); > - return 0; > - } > console_locked = 1; > console_may_schedule = 0; > return 1; 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?