From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from va-1-115.ptr.blmpb.com (va-1-115.ptr.blmpb.com [209.127.230.115]) (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 B57F438E5C5 for ; Tue, 9 Jun 2026 09:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.230.115 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780996790; cv=none; b=mohDe7BfEqHIDb3KPKh4VDQn/BGjXjPsmzCTCbnGp2e/i6lkBEbc/rCu1ltv9bsGrGLb9z589/NqrtSIRji6ufg3IK6i8vDr6NsF8TfVu64lf609I7tLsNdFwXgix8in9KunNWe1sWUTVcVbrrpIVckE1uaQaha7cEWKrSqEkTg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780996790; c=relaxed/simple; bh=0P122Fn2mUj74BKQlVzqos7y8K6F9Rz84hoFPo6v9F4=; h=From:Message-Id:Date:References:To:Cc:In-Reply-To:Content-Type: Subject:Mime-Version; b=Ey1KrBLJi0mJZPELin11Opp0xyYsBnacBEvswJHuVpvt/5z/gKdk3oFN1fLk+drNr9j2Aiw9lAlXRDzPNuq+k02b6i6Rla5WBV7vwTS9qrlnonzwnEi/xZ4lgYTVLy7cbgkBAFiqHRRHNOvP1NnwjquM3TQosLODKpoDaCqwr9w= 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=EsC95ER1; arc=none smtp.client-ip=209.127.230.115 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="EsC95ER1" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1780996783; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=9UYt8ywRbTQvOGXzJfKVSiQceNMM8+++Ffei3z22Wn4=; b=EsC95ER1/TmbnPl5QQO+gEFU5Sqi01gRly2bwUSU8p1uSRfqIc8BllqjVcCszw/QrYPoDC HFDFPoOr7hBjivXPjuX6V4W3Ldr/jkyK9f3EXpPSEbK3nWTRjcxT3XgUI/d+uxO/daFpyi CPHaQni8gV5DxhJj6lfL9Ss5agvr/63pgfscEoRYeUgzwM1ljPhd5avHVr4JSNbPtD+eNn lC8fvK0wabJHatmVjIPIFFpp1o9UTrJeX0aUWtO9oPxTk9ETToDBWnQLLmxuXdrrX2Tfxp mNuYeRDEWwFxKldNYbJ3XVqTenvW1v5kQVBjFrBN9PWDhPMTN7sMw6OKceY5sA== X-Original-From: Chuyi Zhou From: "Chuyi Zhou" Message-Id: <20260609091710.404083-9-zhouchuyi@bytedance.com> Content-Transfer-Encoding: 7bit X-Lms-Return-Path: Date: Tue, 9 Jun 2026 17:17:04 +0800 References: <20260609091710.404083-1-zhouchuyi@bytedance.com> X-Mailer: git-send-email 2.20.1 To: , , , , , , , , , , , , , Cc: , "Chuyi Zhou" In-Reply-To: <20260609091710.404083-1-zhouchuyi@bytedance.com> Content-Type: text/plain; charset=UTF-8 Subject: [PATCH v7 08/14] smp: Remove preempt_disable() from on_each_cpu_cond_mask() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Now smp_call_function_many_cond() internally handles the preemption logic, so on_each_cpu_cond_mask does not need to explicitly disable preemption. Remove preempt_{enable, disable} from on_each_cpu_cond_mask(). Signed-off-by: Chuyi Zhou Reviewed-by: Muchun Song Reviewed-by: Sebastian Andrzej Siewior Tested-by: Paul E. McKenney --- kernel/smp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index 096d857dc3a5..0595e0043a23 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -1136,9 +1136,7 @@ void on_each_cpu_cond_mask(smp_cond_func_t cond_func, smp_call_func_t func, if (wait) scf_flags |= SCF_WAIT; - preempt_disable(); smp_call_function_many_cond(mask, func, info, scf_flags, cond_func); - preempt_enable(); } EXPORT_SYMBOL(on_each_cpu_cond_mask); -- 2.20.1