From nobody Mon Feb 9 21:22:00 2026 Received: from sg-1-103.ptr.blmpb.com (sg-1-103.ptr.blmpb.com [118.26.132.103]) (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 6D55927F749 for ; Tue, 3 Feb 2026 11:26:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=118.26.132.103 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770118001; cv=none; b=rRJWHsXahD0TqWWC54c9f/VBdIGa2UCogE/OGCAQrhLre2NggDPv7BGhJVrIzF4jEMkD8nle0Yme2LXJ2iFrL+hL5CGxOmiDdIpPKaweQT2vd7hLSdPpgkRcIyGddNkiLCkC5vVk9suGrrpNsGDyg2b7E94y3eIl02eG6LPRLU0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770118001; c=relaxed/simple; bh=YuxME/ukDXOMO9B7xKLtUYV9e2Ye10rySpF043VPjf0=; h=Subject:Cc:In-Reply-To:References:Mime-Version:Date:To:Message-Id: Content-Type:From; b=V6B98+g8GT9ZcefRzAV7KrDg8SksC4HcvJGOF+ETrXQAGVG8njX1alAcmuBPRaSeKI3R5YDk9rMPoxs3zIzY8vLXawnovXHKd64IUewtK8a+Fm15aTYgzxNI4dSB7X0KNgJ5q0sKv08yCJ8SXFN5/Q9nDpiV2n9fMupac9TXMLY= 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=MVgVhp/Y; arc=none smtp.client-ip=118.26.132.103 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="MVgVhp/Y" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1770117994; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=EAutZnaA37pRa0HLMj9j47IZArNos1uolZuKY4pXZXw=; b=MVgVhp/YV8jm8l0cGTSeU41G9P5aYT1zmU7Gt88X8MeZJUHVV6I8fEBXsZ6Aegs8F4xcOT gM9WjAD/1SFWHEkMAqP/vTEvT5E/s+QL/W+Ox1utxQcQkSQdlQyvKjdm6xuUYE1LRmok3I 5BGeuLQBY9Zh/rwyBGHoHkBZjCJOAxDDSmjMBgDuWPBIbNEccAzmX428K0rnw5jCBCkT/E ZF3xdvpIjIoE3vkxVmTADbrlCe8fgRIyaLAVN6Aiwzo8UYiBNyX5fMvXKus5CJCabxIG6h CK/mna1kuM42eS3R8jDAXZEzMeQlR2HVAIGhAA0bBQHDo/acN9hPhL1H4g588w== Subject: [PATCH 06/11] smp: Remove preempt_disable from smp_call_function Content-Transfer-Encoding: quoted-printable X-Lms-Return-Path: Cc: , "Chuyi Zhou" In-Reply-To: <20260203112401.3889029-1-zhouchuyi@bytedance.com> References: <20260203112401.3889029-1-zhouchuyi@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Tue, 3 Feb 2026 19:23:56 +0800 To: , , , , , , , Message-Id: <20260203112401.3889029-7-zhouchuyi@bytedance.com> X-Mailer: git-send-email 2.20.1 X-Original-From: Chuyi Zhou From: "Chuyi Zhou" Content-Type: text/plain; charset="utf-8" Now smp_call_function_many_cond() internally handles the preemption logic, so smp_call_function() does not need to explicitly disable preemption. Remove preempt_{enable, disable} from smp_call_function(). Signed-off-by: Chuyi Zhou --- kernel/smp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index af9cee7d4939..088b581003fb 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -977,9 +977,8 @@ EXPORT_SYMBOL(smp_call_function_many); */ void smp_call_function(smp_call_func_t func, void *info, int wait) { - preempt_disable(); - smp_call_function_many(cpu_online_mask, func, info, wait); - preempt_enable(); + smp_call_function_many_cond(cpu_online_mask, func, info, + wait ? SCF_WAIT : 0, NULL); } EXPORT_SYMBOL(smp_call_function); =20 --=20 2.20.1