From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sg-1-104.ptr.blmpb.com (sg-1-104.ptr.blmpb.com [118.26.132.104]) (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 D0C48337BB8 for ; Mon, 2 Mar 2026 07:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.26.132.104 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772438073; cv=none; b=hY1j80qAzxPk3bEB+2SPB7CQd4IJw7hc+pVWxqPq5o9XKR46GH5c2zdQGRqXWm4P8L7qF4E0BNjLQth6HBdznljDPdW79Y8OIKy6TGeacjYMH05pTAm1I/9ZArS/xrPv04niInsw0UkuwMgzjHH+cn4au+k70cScMhyt7lLuc34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772438073; c=relaxed/simple; bh=xsVtRwJ3BcGBF88+nA1pmn/MCUEIrM/tWZpsM+GC80c=; h=References:Message-Id:Mime-Version:To:From:In-Reply-To:Date: Content-Type:Cc:Subject; b=BTPfdIg4jR9UHCYlnIZAKK14APRkyubYfyLaCOYQFBS8dOSO12xtcAXVdyo5uIr6GwAhVCTpdlDm2G+w97s91VRwBqKPvMN65SXqOBHqZIBmqoyDQdOZhB9CCYsycvtMWbkl1v6xz/HhwYWVm0cSnOK+SwUhiCut6lhLJnzL8EQ= 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=QWflwUU3; arc=none smtp.client-ip=118.26.132.104 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="QWflwUU3" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1772438066; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=GWYJ6xFzpzffV/bAMKLcRmXGenEkkdsW9HP/OYS8cwg=; b=QWflwUU3U/bmyzf5uKpR0Qn8lsnLTNtr0tOlN/f/ZN6HMZEOUlC69+TUmo5lEZIhBRgMpi 0NOTs/2bTjCixlDdRcr4pp4smrPXFZwO/niW8IMFKWnHDUMx2fIVi5ImgHhZnXvSyHlGAC eYY5Z6KdQjcgI9OICf+UTBVa5hnRZsY0oeyayZUyB9AJWWyof7vmdJiUTorxGJ8TNe5iRp 58WJcvO+JC0+06ZwjUBW9kwHGTowcAdYS7wXy92LQfdRVfq7N5H7/HdqsGN/KcLSAzboin TZxXZ2hZ/WbcnDijmw4zKGX82oK0/b3fQLfnkr1ZpCidwW1mdSPMgpizMuJRbQ== X-Lms-Return-Path: References: <20260302075216.2170675-1-zhouchuyi@bytedance.com> X-Mailer: git-send-email 2.20.1 Message-Id: <20260302075216.2170675-9-zhouchuyi@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 To: , , , , , , , , , , , From: "Chuyi Zhou" In-Reply-To: <20260302075216.2170675-1-zhouchuyi@bytedance.com> Date: Mon, 2 Mar 2026 15:52:12 +0800 X-Original-From: Chuyi Zhou Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Cc: , "Chuyi Zhou" Subject: [PATCH v2 08/12] smp: Remove preempt_disable from on_each_cpu_cond_mask 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 --- kernel/smp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index f9c0028968ef..47c3b057f57f 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -1086,9 +1086,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