Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5914931rwp; Mon, 17 Jul 2023 11:27:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYSemqx1sVu66akaSwSgswGRIsApP6o5liroxhC7Toj6q0BLkd7HrDg+7Kp5x9JEMsIWkX X-Received: by 2002:a50:ee82:0:b0:51e:1643:5ad0 with SMTP id f2-20020a50ee82000000b0051e16435ad0mr12190322edr.8.1689618448623; Mon, 17 Jul 2023 11:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689618448; cv=none; d=google.com; s=arc-20160816; b=GfGCFvo1lsBpklCkA3YhUSAPTMbN1P/6j6UaYptJ2dg8P8iI5P9+TtH57aJvx6DWA0 4iDWwh17ok6jcOQRj4me4byZ92/sOROvs5ddpIMn6tzT3CpDRQmjBIBIIqPTDRBtWVkW IeVNy0+rq38x/qi+uWpD6HZbqx2e3v753h7diJEiurm6XJxNB8VCatErkh4BdPRnNVot HEUoDeEtTTccA4423wfbNLt0YVek1z13eGVE7P65WI36lstIqLGXCwp1F3C1T5g/IwHf hYOn4IurG5rWebqBQCCs32e/17CC91uvaEMIxeUZ05N07Bk7zlm6nBP6LIxHptrZFmvi U80g== 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=WrsoxQTlKrEHtHiaEBODuKtF05TSTKa71xLJQOxXmS8=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=tqxIm3l6MoqxGQ9RXXmd5QVX5N4NruPeS6Hx1he2ssEIqC4axIEMJDdqEbBPHuBkc0 V6IPPMBGGTWkcAJ4vAcjqJXGTFZnxVOPSaEJQtW4hOlhMXuVtWGIK5+IdveLTBi4vzOU uItjBfPAkZhMJLgdvywBGYVDUwyV4N44Yz1YmKkwYYj9umz3Ijqj9/XBKZtwzJWIOxEx fYt7J4Ey9l2QsM7xv8Bru2+EzN4a/5uYFIyV007GQHdgUEkubLZ30aYHRGG7CNjWRQsR 4sdI4t56Z1l3AuAsD5L7KuDjl4ll3bpgfPWjWOobdVRHQBRMqx7Yqm4dVSsqHKugbT1E VbyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oT+mWmZo; 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 w18-20020aa7cb52000000b0051e3371a8bbsi15640011edt.2.2023.07.17.11.27.04; Mon, 17 Jul 2023 11:27:28 -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=oT+mWmZo; 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 S231340AbjGQSUv (ORCPT + 99 others); Mon, 17 Jul 2023 14:20:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229786AbjGQSUs (ORCPT ); Mon, 17 Jul 2023 14:20:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E8D5A1; Mon, 17 Jul 2023 11:20:45 -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 9D2CF611EC; Mon, 17 Jul 2023 18:20:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0864BC433CC; 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=iHNmBa5tMI1wuSUKoilqIbnxR2gN+BPPdLAg8CpbuqI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oT+mWmZo0G+GJOjCsxtjOtAnu3MLgCvdPcgj96HKkkxDbsoJPuI4pDIjxhWItNQFV PtcA2oDvnJVDJWxbk6MTWGhqKSIGbtfzXz2dhkFyHIIVCvKFz0l2fnePBTn7OZcDRr 57810WoY+7n7zfMKTZg/a0Yzm9UBZIDSfRbW8I6oZBSgC5AAeQdVVvsIaXsKgdfuR2 /No8QlypXYybViq53nziKVyECTA3ugWtB4XXuiNlAfQuT+u2OI3YBl8IxMLQycQNnk G9h7/j7DI7CGWxbScOAFYY4vt1SlRh49KxByvOCB/u6a1tc5RxfychLZvOtOhuYXq4 b+ZnQIpI6u7cQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 93017CE0836; 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 4/9] torture: Make torture_hrtimeout_*() use TASK_IDLE Date: Mon, 17 Jul 2023 11:20:37 -0700 Message-Id: <20230717182042.1098651-4-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 Given that it is expected that more code will use torture_hrtimeout_*(), including for longer timeouts, make it use TASK_IDLE instead of TASK_UNINTERRUPTIBLE. Signed-off-by: Paul E. McKenney --- kernel/torture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/torture.c b/kernel/torture.c index db79197e257a..836fefa44373 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -96,7 +96,7 @@ int torture_hrtimeout_ns(ktime_t baset_ns, u32 fuzzt_ns, struct torture_random_s if (trsp) hto += (torture_random(trsp) >> 3) % fuzzt_ns; - set_current_state(TASK_UNINTERRUPTIBLE); + set_current_state(TASK_IDLE); return schedule_hrtimeout(&hto, HRTIMER_MODE_REL); } EXPORT_SYMBOL_GPL(torture_hrtimeout_ns); -- 2.40.1