Message ID | 20241107111821.3417762-2-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D5DBD43349 for <linux-mm@archiver.kernel.org>; Thu, 7 Nov 2024 11:18:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8B6406B009A; Thu, 7 Nov 2024 06:18:28 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 898556B00A0; Thu, 7 Nov 2024 06:18:28 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7540C6B009F; Thu, 7 Nov 2024 06:18:28 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 54ACD6B0099 for <linux-mm@kvack.org>; Thu, 7 Nov 2024 06:18:28 -0500 (EST) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id C9D05140643 for <linux-mm@kvack.org>; Thu, 7 Nov 2024 11:18:27 +0000 (UTC) X-FDA: 82759049856.05.128FC06 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf24.hostedemail.com (Postfix) with ESMTP id 64ECF18001B for <linux-mm@kvack.org>; Thu, 7 Nov 2024 11:18:21 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=wtsNZeNO; dkim=pass header.d=linutronix.de header.s=2020e header.b=94PFRSzp; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf24.hostedemail.com: domain of bigeasy@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1730978136; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=rlnDNt/q+P1z8kgLF+N992bHvMJ9T7IfJZldadLin68=; b=M/A3/8Rv5+nGQaaqSV+Tm9lRFjHElo9wklUftK8HLr7cSZ2MPhlE8WbK1s1l3a27Eby7tc e+15nr7iWbtsknWdsW+cl8GdlP7PoRy/2VCv+gTppubKGCLY/HWXGl5kW+2ZAlfkwMs/lc 8T0bAAn9e2ujxAGOq0zsWPAyKLwSf/I= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=linutronix.de header.s=2020 header.b=wtsNZeNO; dkim=pass header.d=linutronix.de header.s=2020e header.b=94PFRSzp; dmarc=pass (policy=none) header.from=linutronix.de; spf=pass (imf24.hostedemail.com: domain of bigeasy@linutronix.de designates 193.142.43.55 as permitted sender) smtp.mailfrom=bigeasy@linutronix.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1730978136; a=rsa-sha256; cv=none; b=e9biGwIkAthXGoLyu6Veb0RRFk0dKE0ERNeBOHzoMtjM8Vj4DBHgnd2FM6AnICl7GZyQNq 5yDQDzu0fEu6MF/ZrIZD7jB2wWI/50Z8Zyp95+xTL3Enlz7r78v+IMsof0SWrq8h4KXgXK 6UIgFHL6Lju/9qTr3AO3zd2A+5x0qoQ= From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1730978304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rlnDNt/q+P1z8kgLF+N992bHvMJ9T7IfJZldadLin68=; b=wtsNZeNOyMJaldtbOFaqNx8Fida5NHgixfmht+XXgQL0xo2mc7k4R5BDokhZGEAAf8puhY RdaNsQqt5gLo9RzhmXtjmMEXAPSzEDrdEM428J0L8X8bgAKSqxHlUZmercMPgiaI4clbkB ovMAgCRyrdKw8bOWUgivcosNYwZGearQAPTjk3OWJxxP/+/QluQm+XzyzydmSOR1TurxAw 1VcmIe6jEMY5XIEv8bkhXi30L0O0zucKKTJ/kmEtxzTugkWiTe09cQe2z1SvGwVM/L0Uyt IymvOb70uBfkVjuv82GnKmMyUulUqf+9FRNZl+3BDNeakG35dM8WrAZv2JZZ1g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1730978304; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rlnDNt/q+P1z8kgLF+N992bHvMJ9T7IfJZldadLin68=; b=94PFRSzpi6CjV9+fwfoYfFcVVSDiklFOujZck6z98CsK6lfD6ykQFvnYpIGnoHzKMnEoru u2W1K7fZOV3JHVAA== To: kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: "Paul E. McKenney" <paulmck@kernel.org>, Boqun Feng <boqun.feng@gmail.com>, Marco Elver <elver@google.com>, Peter Zijlstra <peterz@infradead.org>, Tomas Gleixner <tglx@linutronix.de>, Vlastimil Babka <vbabka@suse.cz>, akpm@linux-foundation.org, cl@linux.com, iamjoonsoo.kim@lge.com, longman@redhat.com, penberg@kernel.org, rientjes@google.com, sfr@canb.auug.org.au, Sebastian Andrzej Siewior <bigeasy@linutronix.de> Subject: [PATCH v2 1/3] scftorture: Avoid additional div operation. Date: Thu, 7 Nov 2024 12:13:06 +0100 Message-ID: <20241107111821.3417762-2-bigeasy@linutronix.de> In-Reply-To: <20241107111821.3417762-1-bigeasy@linutronix.de> References: <20241107111821.3417762-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 64ECF18001B X-Stat-Signature: bn93kiwkubbpnpeijcxg3motj8cwf7bi X-Rspam-User: X-HE-Tag: 1730978301-526041 X-HE-Meta: U2FsdGVkX19eHa49ydI8G04W1WyQgewKOa5/vE/vV3AKE/xQBh5C6xPsaoqRfuvq+td4rdsJWW+QI4QflFjnRRuggA653Xh59RyLrDJvWFeLpzbKBMfmV46vjB8Qi9VybMwe0lt/p2pVsINfCDR3l9IC3pILIczvOdNmc45JdEjQGAjOC+T6zKMdZUk21lTcc9G+jSoxi4dR1HbeTZnDusbXlMtoPl+G7BB8/DnLm702p/WNu7UPX2uMOtLbzC6Z4UAo/WwxwW+PrJDzblcw5y8a+mB+HLCxzM63pILfUntGjg4TyvckQmMQN53MEksoEBheIK8hGa1Kr822xpY8+cwMOKS+6yH2Aio/ZLYd0n3NAFwfMycGAX9veBSVWqjvcwx6E+XFMZw0hzTOM40Pw5RXokoCkc5lIsJ5BR+EeVLSW6GkDjcWkquGbaQXwbUylQWXkIbNmyKaH6JncsnhzxnXRmdZ+MGGsBvMT75HpGDzOrTW/sFTXr94tb4Mds7ut4c9V02y9u8XadLWtgbN2YyoR7VF+d7jeo+5vO+j9mhKRUOWH8qKEb2mkZ7jG8CjIvCmS97KvaxHFv0yjeWZ8aKzimdRcL4yHIFt84l6gmdDHDRM7vG44uMUjMBuJ9cL9bnLWUi2dak7kVTh6QkTLAMagyufot5IL/62h4uZ4XybW0LL/rfSI9rVYb1OIwcTKKt/kjsdga5R7ICsTSeFWGxNEwIHJ6UAHRWOgMN4ziL3ROcLEIlzVyFRZKNYTaRWhp8vPeJRF3MYPfhaW6HbyOKTEisTeXhhbgheS6rTyJaQU02lI9Ls8+wZ1FqbjY+ixZ7rFIv00Oa+McXSMaEC0nU5zVe/ZgvmEcVQmuw/4H8HiEmtOtBJTMkg946WP0OqKErwp03l9perYNBWTBaX6XvG5XbBrX4n6riqEKKjAf9Cna5NClwIoOmv/ecLbGRXrhz81JIwM+s25kvjLvA dGn/1IZa eocdFOmpIYz21J7Vn41RXrm+u+F/S9Hfd6n8BFAbDBcVvzb6ntlbGL4/0l8Qjm/yEbaj20AkC1LyLPNTxAQyMMdACo8/jJ1ihEyiSQxJ66KVfZ2xVFOITp6yUywntaH7vfO8cteXWIN/FhVXR+9+OgRCMLWI261hBE+PiLLjSq30vIktKs/d11zKMW/9+uDm8aTX8YdaKZanpsXOnU0irafVI2Q== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
scftorture: Avoid kfree from IRQ context.
|
expand
|
diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 44e83a6462647..455cbff35a1a2 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -463,7 +463,7 @@ static int scftorture_invoker(void *arg) // Make sure that the CPU is affinitized appropriately during testing. curcpu = raw_smp_processor_id(); - WARN_ONCE(curcpu != scfp->cpu % nr_cpu_ids, + WARN_ONCE(curcpu != cpu, "%s: Wanted CPU %d, running on %d, nr_cpu_ids = %d\n", __func__, scfp->cpu, curcpu, nr_cpu_ids);
Replace "scfp->cpu % nr_cpu_ids" with "cpu". This has been computed earlier. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> --- kernel/scftorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)