Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2173926iof; Tue, 7 Jun 2022 22:10:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaNOvbl/5JWb7fpwJ2DyUAhMpB7Ym0L/ZTkIbVU9FuB047O9rHLaOif6n0bj5fRQ7/xrpE X-Received: by 2002:aa7:9047:0:b0:519:36a2:9f63 with SMTP id n7-20020aa79047000000b0051936a29f63mr32919437pfo.60.1654665032590; Tue, 07 Jun 2022 22:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654665032; cv=none; d=google.com; s=arc-20160816; b=tGPYnB90/dB9v+sKPmWtP9qIBMqP0CPQ/pjPIzl8My7whc1THFvh35mNC1fg4m1YIo /VQfq/REkvXQjRgMlW8kV+97X5hrtbWrFIgAg/XrnIdAP836mEPDGULAQm8+reejFkI6 7tCqRXBfcI7mYDTfLiN70EozAJNbuvoXn9pgiq4aOLRtDwYfZw2MONjDGSbaHwGxk+qY 5KLmyFWxRs7vJGqMhMK8df4FLZ1Oi3MJNBulXB3KPpytGP0uRdVdPtQGMm3IcMdqgQv1 pyVqL3ZO7P/qCPZEr6lh+vuBOsj3hDb21aGJlwx6Z8KS1LGozwa8tkDm2GLY59dbcPtL MIEA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rUSn5LS2sZx5VxWeKSzWRKn1yDwIwu29f1LbkQE0jgU=; b=aojBZ3itlykZzUDFBALLwSC8v7gh1xkWrDwwxD9PHOks8XTVgcLH4767fWgoqqhaeJ staCD9tv4EEbXPWC8qv7DuWA8BgPkhIrappU22w2ueWrC/HBlxl9dhTYtHuoHjWHXI/J sC1X7RrEFzq5deagHW+r21KTd7BDsL0H+USkbFITRuRAL6Mzr8LONP+OeHkfm7UZxl86 HkMGqdjNvahhxPxq2CSC/TLONbOmermzbXVaq7LE+/pabO0cbmvK+7MWQtFoWNJuXr1Z cnU2j1rxgcA4QHlFKRvnd0l8iRWLtKvVF3jhU88CRycCE9Lx16Zh9jyapfD4Cq+vE5fD KsGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZOwYzAk5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q44-20020a17090a17af00b001e270ae2c0dsi30617984pja.62.2022.06.07.22.10.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:10:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZOwYzAk5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 599B44EA3B; Tue, 7 Jun 2022 21:41:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347830AbiFGRfu (ORCPT + 99 others); Tue, 7 Jun 2022 13:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346263AbiFGR2f (ORCPT ); Tue, 7 Jun 2022 13:28:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDF68115A62; Tue, 7 Jun 2022 10:24:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 435D860DDA; Tue, 7 Jun 2022 17:24:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55CBAC385A5; Tue, 7 Jun 2022 17:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622669; bh=9T8tfKnqf1m6Z2nT5BkADUKc6/Fgxts7hIebGV0ZuGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZOwYzAk5ZBBER57+VbWw8SJwQChy2hWGL0iJVsuJMWdeE5AameNRvLEEWKSltviJv ghr5X5gc3sDnq21NkK5kgYfsWm2EtaPcDMvfcou+x8HcqdLeHr3m8AuRHh7bp6JKWp RDTTk8AKYp/7SNovaZ7iyKmpGbDgDgHNWl3RfzrI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Paul E. McKenney" , Sasha Levin Subject: [PATCH 5.10 141/452] scftorture: Fix distribution of short handler delays Date: Tue, 7 Jun 2022 18:59:58 +0200 Message-Id: <20220607164912.761568384@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: Paul E. McKenney [ Upstream commit 8106bddbab5f0ba180e6d693c7c1fc6926d57caa ] The scftorture test module's scf_handler() function is supposed to provide three different distributions of short delays (including "no delay") and one distribution of long delays, if specified by the scftorture.longwait module parameter. However, the second of the two non-zero-wait short delays is disabled due to the first such delay's "goto out" not being enclosed in the "then" clause with the "udelay()". This commit therefore adjusts the code to provide the intended set of delays. Fixes: e9d338a0b179 ("scftorture: Add smp_call_function() torture test") Signed-off-by: Paul E. McKenney Signed-off-by: Sasha Levin --- kernel/scftorture.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 554a521ee235..060ee0b1569a 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -253,9 +253,10 @@ static void scf_handler(void *scfc_in) } this_cpu_inc(scf_invoked_count); if (longwait <= 0) { - if (!(r & 0xffc0)) + if (!(r & 0xffc0)) { udelay(r & 0x3f); - goto out; + goto out; + } } if (r & 0xfff) goto out; -- 2.35.1