Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp29203iog; Tue, 14 Jun 2022 18:06:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8mzQpvYskJvpyUtAYHDQDLAhk5gBvGk0cuTHXoc1vTThwkmhx50KelOz7unBuaipCOmlK X-Received: by 2002:a17:903:244a:b0:167:74f3:7463 with SMTP id l10-20020a170903244a00b0016774f37463mr6829946pls.44.1655255218374; Tue, 14 Jun 2022 18:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655255218; cv=none; d=google.com; s=arc-20160816; b=YkgYMBhpxpeDVYVTUL8H5uJJejB1/CRvIMAlaMDe7A+at+MmTJp7QINVtB9ow8skcu RFdNHYu+X4bGHlpMm2ppGpA40AZZop00s/kRBqh5B3AQFJnrKTba0xNjXkSkmcCPnbM6 j5+1Ajg3vQKXSIQu8m1Zo/GY0uzigOB6q9l84K7a59M3f9TtX0lAYvQDO0ms+rHBS4yV xo7NrkaiNne5euw9sXnveyCH7F4q5dNthkMqLOPE1DXrQigWsUCm6gft+ISeMxzNX8CE fNA/zrVLHbD8tU8zVjXnLozHbOMWyhggpbkPZUrkcHRjLNGSJf1cK4XYb9dFhCqD2w8O K8/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lqune7TOKj50JTMv6xtwhBh+LkwqGuxbN/y3qLyMyvk=; b=VsrnIC4w55ECrKZxaWjty+g8+HSU0JnPsXzBszc3PYHQrU2vm7f5Oi2/nbkd2cuJQ7 AdZ5reGorCNPu3FDP3Qy3UJ2nSL+3ws3rEKljEG4foux9Oi0pBlUldI7PLtY0j9C184u hXMTsZOTqT5TEPK1jEGbvNurV69TronO1haeT3rZWkl7IM04onJjor5QXJUJd809yzxY ibYV87zngpMazRbqsiP1ip26IJyEFNlhWLC3c82xRPbrIK+VCIQb5zLL9oGcIN58FLfA SCKnJAZV+I8i3ITcSucPMY/Q2AUlJXvlROya8G1LqoY1/XiQ1QGHhndn7XijC1bmizu0 yEsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=R2URQgjt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np7-20020a17090b4c4700b001dc21092149si785609pjb.140.2022.06.14.18.06.46; Tue, 14 Jun 2022 18:06:58 -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=@gmail.com header.s=20210112 header.b=R2URQgjt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232859AbiFOAhx (ORCPT + 99 others); Tue, 14 Jun 2022 20:37:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232753AbiFOAhv (ORCPT ); Tue, 14 Jun 2022 20:37:51 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DA8D13F64; Tue, 14 Jun 2022 17:37:45 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id u2so10013127pfc.2; Tue, 14 Jun 2022 17:37:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lqune7TOKj50JTMv6xtwhBh+LkwqGuxbN/y3qLyMyvk=; b=R2URQgjtUB7aM836Yy31HgZM0qvwzRxuWIIm07hP3WxbfsNsdvCuDyk4sYGuHILWPJ ClBDw/az8yWCkfj8YOcMm2+UidIU2x9Nc4lXh4xIIpocaJvPuuuz5APnodOGXLC0Z0Q7 kQ82Eh/7IqTftZwBF4kpcmij5vzqj2ktdqCXk/fBjpR8Jvu2tEnuMzXj/aklGSu+GOln gqyTlnpSzfMB4P4Uya98wS9uc2QCfK9nVxRl2sFBVc6WeSHUUMPrhdC6lf+I1Fc2KWQQ Ads9P2hoq8Eo5iHR4yw2TSgmqz0OrduhrTJa+M9xcz3yEIog//9HhYV6Pn3zT2WUQGO3 v/qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lqune7TOKj50JTMv6xtwhBh+LkwqGuxbN/y3qLyMyvk=; b=VFKn5EWVahxh6mo4+ptkR/qSp4uv1ZjkyzVxYvvgZ93gL+hnoC9yRjl892xAyYBxoq 9HCq+qU6yz2sXwuZKtkUz87+YA3jnfdSZOW4v3yYhjMYt4lghceE30TMZihQHFnHrSBg NKECudBPYZsISJj2crNP8kDP4/tMSpssUSSQkbw7/+PVczFhur8H9PCAGdPc0urCh6wa vQ5kk8QcoGS75+J4cqogAsNDPeYeHQ5ncD1ixGN2R6xGwPp9qS1XecycNibhFWN5qmP5 +p/4hAWseQYFRiyhNn6KRe8TQk6EfdU6J9TrGdJX7HOZuYMJOuQ1QiWuW4rVJ5gnP1QE 68+Q== X-Gm-Message-State: AOAM531Tt79IYGn8OHt3iYkBORqGybUwXZLeyMZJnovD6DOMkrQSLwaU DwjL0RDCRbzuaWXalm17bqajxh4BJUY= X-Received: by 2002:a63:ee54:0:b0:3fe:30cc:899f with SMTP id n20-20020a63ee54000000b003fe30cc899fmr6813140pgk.234.1655253465042; Tue, 14 Jun 2022 17:37:45 -0700 (PDT) Received: from localhost.localdomain ([199.101.192.2]) by smtp.gmail.com with ESMTPSA id l9-20020a17090aec0900b001dcf49d92a1sm216795pjy.28.2022.06.14.17.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jun 2022 17:37:44 -0700 (PDT) From: zhouzhouyi@gmail.com To: john.ogness@linutronix.de, pmladek@suse.com, paulmck@kernel.org, dave@stgolabs.net, josh@joshtriplett.org, linux-kernel@vger.kernel.org, rcu@vger.kernel.org Cc: Zhouyi Zhou Subject: [PATCH linux-next] RFC: torture: add pr_flush to flush the results to console Date: Wed, 15 Jun 2022 08:37:33 +0800 Message-Id: <20220615003733.16447-1-zhouzhouyi@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 From: Zhouyi Zhou currently tools/testing/selftests/rcutorture/bin/torture.sh reports false positve because of kthread printing. Commit "printk: add functions to prefer direct printing" (2bb2b7b57f812) have added functions to prefer direct printing activated for the primary import messages. Meanwhile adding printk_prefer_direct_enter/exit to torture_cleanup_begin/end still can't eliminate the false positives for a hundred percent. This patch add pr_flush to torture_cleanup_end because the latter is sleepable. Reported-by: Zhouyi Zhou Signed-off-by: Zhouyi Zhou Tested-by: Zhouyi Zhou --- kernel/torture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/torture.c b/kernel/torture.c index 789aeb0e1159..b51e42463a67 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -878,6 +878,7 @@ void torture_cleanup_end(void) mutex_lock(&fullstop_mutex); torture_type = NULL; mutex_unlock(&fullstop_mutex); + pr_flush(1000, true); } EXPORT_SYMBOL_GPL(torture_cleanup_end); -- 2.25.1