Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5931798rwp; Mon, 17 Jul 2023 11:48:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEiYEb/XKQMuqwEBI9pXxBGcIvqH7QSBUBL6RQU80B8UOn3gre+fUgYC+mhBSPnTCcnwves X-Received: by 2002:a05:6a00:2e22:b0:668:6eed:7c12 with SMTP id fc34-20020a056a002e2200b006686eed7c12mr17377659pfb.22.1689619696915; Mon, 17 Jul 2023 11:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689619696; cv=none; d=google.com; s=arc-20160816; b=DAIntKkjgAzmZ5BEQ9jKrzaqYXzG698G0Dk4tImFL24IofNMDIn8h5vDC9PzBQQi9a eooF0fQl/t9y0cd6BLbge2kdT1uKsWEWYJ19C8anuQiDzt2A1bJ6jk2H6JP/jx7Cny46 J2GTTFDB0PgylF/+i5n1Jl1wTtr+AJqn0foATefq7MiOKtnSzvBeZ8QEdMjbDHo854R7 kILyzd5SLDevH5/ZD2HWuM3d+LO6symi9ZiVflhIfBXQGAmsQUYaj4mLcpSrNGCcFy6b 8p/wtfgTE+pqRxhRli+su4pxh6bxuOD7zSo/65SQA+S9sbhgjSVzZ5eli5KrTvISH6pz 1e4Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2T/kXzRIIVJ9H+4rt+BDWik0c5+Fi2RCfAVKdi5cZKc=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=CrrpCOf9pwpgBC0jNmvkUTxofNDeb0Vs69LQj59msuu5na+LQJ87lM16+HchND0QMr 0HlzBGLe1OKaTF+KfkffXfIDH6aCfSZ8Nytm24oXMpIenZ7LN5VR7kxfxTKgY8ji0HZQ GfP1C4X58nLk7PSJIwsjdyOpr68UZesgo6bLdTHrOsQ6MAQRtTmWORF2V9lTq0a2i02r FfTPOIijqvaBJhrJzRpeaMNlYLCSvQeBRwLNX53Sy8ToR+Q9KkCzuasnuE/bjebD4Tu+ AxYhlWUlxrLvldjAEiLnD78OGumoJ1p92fP787Tt2ZPYbu0oLWP97wGz8Cc2YpZ7p17R GZNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QNL1lw22; 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 w37-20020a631625000000b005349008e6c1si201622pgl.264.2023.07.17.11.48.03; Mon, 17 Jul 2023 11:48:16 -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=QNL1lw22; 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 S231847AbjGQSVC (ORCPT + 99 others); Mon, 17 Jul 2023 14:21:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjGQSUu (ORCPT ); Mon, 17 Jul 2023 14:20:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2923E6C; Mon, 17 Jul 2023 11:20:47 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1095B611AC; Mon, 17 Jul 2023 18:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D958C4339A; Mon, 17 Jul 2023 18:20:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689618044; bh=vYKb+aiy81aGannlId6zaPb2w6tBkokl0Gh0QHY/RfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QNL1lw22uq5lc7bBxJLhQ1H0YCsOe2FR/akZuVZJix1IRhu8N/6mpjZuyL3HmXNgS sbn+QBg6PoPJrRY52F88YJ0gLgtlP018emk9ACMke/CI9zY8bO3p5Gg4CqnjJ50cSj s0m6X+G5AjIEy7xzwXK8P0qefkIb3FE5wz4R5aV1ql2/L2dGqp9ppbzBEBY+hPt6+W 4bsg/56I1S0EZi8VCDWqKZwYgPrV9R84HyXMB3wZu/qbCYsPTFuWg/GzhmIZPwHF/X 34Z/KGxGh8Dcs8TBRRMq/RFimteNApVTISly5yfGoWyvz0/tt9bnsUL+udM3v9TdhS mG/YtZwjcP+jw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 971A4CE092F; Mon, 17 Jul 2023 11:20:43 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 6/9] torture: Move torture_shuffle() timeouts to hrtimers Date: Mon, 17 Jul 2023 11:20:39 -0700 Message-Id: <20230717182042.1098651-6-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 In order to gain better race coverage, move the CPU-migration timed waits in torture_shuffle() to torture_hrtimeout_jiffies(). Signed-off-by: Paul E. McKenney --- kernel/torture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/torture.c b/kernel/torture.c index fc873116a399..3ab4930b9fdb 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -560,9 +560,11 @@ static void torture_shuffle_tasks(void) */ static int torture_shuffle(void *arg) { + DEFINE_TORTURE_RANDOM(rand); + VERBOSE_TOROUT_STRING("torture_shuffle task started"); do { - schedule_timeout_interruptible(shuffle_interval); + torture_hrtimeout_jiffies(shuffle_interval, &rand); torture_shuffle_tasks(); torture_shutdown_absorb("torture_shuffle"); } while (!torture_must_stop()); -- 2.40.1