From nobody Tue Feb 10 01:59:10 2026 Received: from sg-1-101.ptr.blmpb.com (sg-1-101.ptr.blmpb.com [118.26.132.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F02232F75B for ; Tue, 3 Feb 2026 11:27:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.26.132.101 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770118029; cv=none; b=HljYo2fCz9rHYQRvZ2pEWCynXHsW8JGCcQ9XGaUBdLqsGv4MnAeaSGS0qOX1jLRplAlKq2MGJyAVZ62wadPeE2Tbg0FnGqK5JnF2BLxAMYUN6MVM9eYBMH+sBvw+YmzPLeLhNarxCltXvszKuCQxB+Qog0TZiEfMXFcMxz4X9Qg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770118029; c=relaxed/simple; bh=Phg/lpYVFw2n1GuxMvOC182zpHg93y76BBvFJ38yPFc=; h=To:Cc:Message-Id:Date:References:Content-Type:Subject: Mime-Version:In-Reply-To:From; b=HJpRpeQ0peXGx2fkEDPUITUk7VmQQTcGe8Ia8WR7yEKUK8siVp554ixaMiCCEzkUq0JXhR0S7P0JZzHRmuyQw8sjO/iyFGJidbg/2iZNYHTYgQaUzREB5WZ16qsKveJL3TtWa0pELQbphi7aOZ+IiTmA11TusbSt+qfch5rGrCU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com; spf=pass smtp.mailfrom=bytedance.com; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b=QXssbBId; arc=none smtp.client-ip=118.26.132.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=bytedance.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bytedance.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bytedance.com header.i=@bytedance.com header.b="QXssbBId" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1770118021; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=PKbAp6p11Sgqgiy+Y1H52B1Iz/jSoTaX5tZrwEsH0uY=; b=QXssbBIdLUgqo6S5LcM673fddwcK1xYyWPEzwT2lsRdr7sAS0wsG9GdBGwxCPHVQs+niN1 E5UFE53LbmbOdbyu6lwi//QkNP36yZxr1cWLXWz4Ga5uB98YfH7P+RmA5co8E7R2/OtDE2 uZrQ+v6hKLjDvCshC7nMipunLC5EPwad5nFHQswj/8TUY68pp0Bj/+SulfDwC9vrzOwmCq ZMT2GMQXinll8VHJdbRDYt8UVRYrZiOqWy6879vAR/io9s/xON3AFrCHkGTCNZDjwGnQuY 9fjQd2ta2qMQGBVqngt1xSxlQqqqvhky6/eD3dMmyTZbi5wWTyDJGXrbx3uoXw== To: , , , , , , , Cc: , "Chuyi Zhou" Message-Id: <20260203112401.3889029-9-zhouchuyi@bytedance.com> Date: Tue, 3 Feb 2026 19:23:58 +0800 References: <20260203112401.3889029-1-zhouchuyi@bytedance.com> Content-Transfer-Encoding: quoted-printable Subject: [PATCH 08/11] scftorture: Remove preempt_disable in scftorture_invoke_one Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Original-From: Chuyi Zhou In-Reply-To: <20260203112401.3889029-1-zhouchuyi@bytedance.com> X-Lms-Return-Path: From: "Chuyi Zhou" X-Mailer: git-send-email 2.20.1 Content-Type: text/plain; charset="utf-8" Now we no longer need explicit preempt_disable calls before smp_call_*(), because the smp_call*() internally handle preemption logic themselves. Remove preempt_{enable, disable} in scftorture_invoke_one. Signed-off-by: Chuyi Zhou --- kernel/scftorture.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index d86d2d9c4624..3fb1742f3129 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -364,8 +364,6 @@ static void scftorture_invoke_one(struct scf_statistics= *scfp, struct torture_ra } if (use_cpus_read_lock) cpus_read_lock(); - else - preempt_disable(); switch (scfsp->scfs_prim) { case SCF_PRIM_RESCHED: if (IS_BUILTIN(CONFIG_SCF_TORTURE_TEST)) { @@ -411,13 +409,10 @@ static void scftorture_invoke_one(struct scf_statisti= cs *scfp, struct torture_ra if (!ret) { if (use_cpus_read_lock) cpus_read_unlock(); - else - preempt_enable(); + wait_for_completion(&scfcp->scfc_completion); if (use_cpus_read_lock) cpus_read_lock(); - else - preempt_disable(); } else { scfp->n_single_rpc_ofl++; scf_add_to_free_list(scfcp); @@ -463,8 +458,6 @@ static void scftorture_invoke_one(struct scf_statistics= *scfp, struct torture_ra } if (use_cpus_read_lock) cpus_read_unlock(); - else - preempt_enable(); if (allocfail) schedule_timeout_idle((1 + longwait) * HZ); // Let no-wait handlers com= plete. else if (!(torture_random(trsp) & 0xfff)) --=20 2.20.1