Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3325904iog; Mon, 20 Jun 2022 17:18:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tV0u1ODrKvDIFGX++jzYLcBySKKL0h/wM+LUUcuITkA7rN3jaNK181Zz7T61nG6duHQtYg X-Received: by 2002:a63:3143:0:b0:3fc:6078:7e0f with SMTP id x64-20020a633143000000b003fc60787e0fmr23786417pgx.272.1655770709353; Mon, 20 Jun 2022 17:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655770709; cv=none; d=google.com; s=arc-20160816; b=AUllWDWONq+mue/PkJWIPm54Nq5hnApjh+EMFS87bkRSt89jZHKOiKkssazDfC4p47 DhRIBccf8ZGVtnSW7+0bp9jukBvXEmMtxdsC0mD24eKBu1mcklRBKGYHcAXRmD4OuLs7 N6UNuABsCTWL2nCvmE9vN6XwGLf6rVzC55Mhzy4dmAKiDLl0iTeMduFCBuL2IvgCqTAJ dlh/3DEkxDPh0Oi/uEiBQ4JT4cIHhFQrocN+UWs/jiVLeM9sIS2TWAHrPGWv59YFeCOx m3Qzpan2uCUSIfseQ+tHjXVBziwehvzukVJUDlSHITYKTZn8as1EMG2YFl+UR9k3wK4g F6fg== 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:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HUHjA2/5kajB4/q69Uhv7W4DYENQxlOlhdCBx4bvpNE=; b=Yh5V5Rc4upDoUx09M27SecAiGsZWZhLXvNJirquuQwySoNQ1k8YsiqK8QzIrtVdkz8 jsBjISNCYNEsXJqJG+Pwk0UkB9T+QWl9BOse7k4aPMYQPNK5pvnMBkpditj+rdhoPCVs HkdmlPgF1A/TQr3dffs1s32cD1NecG0v9IVDY5u3XPt7RWupv0mAJySFEvfFTBv4vTGC LZQFsQfeaol3UR14Im7tAgCoE9GCU/lU6Or/IQLyJrEAiG6g4h4EUFmtBuMevK3k7OlY DnNKB6D9pTZNVEjekO883WVDGcv945IW6uA7F5p5lgVpV+M01vm4stljbo1B/H+u3KEJ L4SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C6ASf43Q; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g10-20020a056a000b8a00b00512e59d9bf9si18828740pfj.296.2022.06.20.17.18.16; Mon, 20 Jun 2022 17:18:29 -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=@kernel.org header.s=k20201202 header.b=C6ASf43Q; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347089AbiFTX2v (ORCPT + 99 others); Mon, 20 Jun 2022 19:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347492AbiFTX2l (ORCPT ); Mon, 20 Jun 2022 19:28:41 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3447210FE8; Mon, 20 Jun 2022 16:28:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EB99CB81213; Mon, 20 Jun 2022 23:28:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DB13C3411B; Mon, 20 Jun 2022 23:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655767718; bh=KtJngfqgTk5wBhNhP13+KWCBf6xSwcGzo/7nqF6dp9w=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=C6ASf43QZiUkdJ5CxhJ/WaQ6B3tGPMVugNQ2cTUficXoqwQ89fnkhEOMf4s9N1yxR fzHEBRhK4uJKXGiuPQv7jc3uq8M6cRGAEIEMbXEMjrYGOaGC1W46F/3y1VElJWmVEQ QP0pq+6iOIj3+eqlDsh01UeSOxi0qSssQoB7euHC7jPIhLpPjaXwPFYU+mz4YkZrzs b1HA/qrM+4FTJ88g35lJJxjC22Lh9ZwbaaCAx9OuFqcDzWLxHVb+e4lHZ1dnLqgCAR C8Wbp+hYEnGpOe3tqcauvzCD0JQfWCcg8duj8ANdZhpyDCTMJrUaiMBTuyd3VZIJD3 yUQag1fbzddkA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 2624E5C05B9; Mon, 20 Jun 2022 16:28:38 -0700 (PDT) Date: Mon, 20 Jun 2022 16:28:38 -0700 From: "Paul E. McKenney" To: John Ogness Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org Subject: Re: [PATCH rcu 11/12] torture: Flush printk() buffers before powering off Message-ID: <20220620232838.GZ1790663@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220620225814.GA3842995@paulmck-ThinkPad-P17-Gen-1> <20220620225817.3843106-11-paulmck@kernel.org> <8735fyc42v.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8735fyc42v.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, Jun 21, 2022 at 01:29:04AM +0206, John Ogness wrote: > On 2022-06-20, "Paul E. McKenney" wrote: > > The rcutorture test suite produces quite a bit of console output > > at the end of a test. This means that the new printk() kthreads > > are likely to be in the process of flushing output at the time of > > the torture_shutdown() function's call to kernel_power_off(). > > > > This commit therefore invokes pr_flush(1000, true) to flush this > > pending console output before invoking kernel_power_off(). > > > > Fixes: 8e274732115f ("printk: extend console_lock for per-console locking") > > Cc: John Ogness > > Signed-off-by: Paul E. McKenney > > Reviewed-by: John Ogness Thank you, John! But given Petr's and your recent changes that are now in mainline, is this still really needed? (Tests now pass without it, though tests can of course be misleading.) Thanx, Paul