From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from va-1-111.ptr.blmpb.com (va-1-111.ptr.blmpb.com [209.127.230.111]) (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 CC275245031 for ; Wed, 13 May 2026 12:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.127.230.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778676467; cv=none; b=k8FZEr+ERyk03roZ7Gly41chyWXI4TK0SXAgeCmCY4lDnNFvu5L98vyOH42Kr7BVBTseKkIAXk1LLQl9FZs4jBm7uKrt9BM3aemXJJztcZj3tdejhURvTusS2PcBosdbJvo0Kumhh250zVXLUEEH+xQ4SIP8+jcxlub7KvuHdEs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778676467; c=relaxed/simple; bh=4SHqM3yOPN4P2ufCvEjea0q5MBnAhIcC3dgoFolcwqg=; h=Content-Type:From:References:To:In-Reply-To:Subject:Mime-Version: Cc:Date:Message-Id; b=j86d19irE+kd7CJOc3Yo0SkvvQwaFP3pu1S/Y9jZS4vllas+BHelkwnpo8pFl/QiBT65gX8X28d75s0wUZo4Vfa3dquLd6ntX/JDJFdEvruzhuNDOIQvDDFzFnEnEMT2W7ZcVbK+1EhPXXHE4wwDmTIM7arn9lqMLhOLlcNDFHc= 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=piS+L5Oj; arc=none smtp.client-ip=209.127.230.111 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="piS+L5Oj" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1778676460; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=Ak7Dzg2NCPfamL2k7vvS6ThY1nprXzUendPOHV7QBkU=; b=piS+L5Oj23XkjvgK7gEIhCmtUx3yNYClQgRuiqSawHo3CPZiigzSV3Dy/l8D5kQG5VWjTk Ov0h+fiutNILfgXvbzkSAISUfE0jloJiJ3o6s4MRDbGUumIs5cqck/gp48e9BBNBQ2DQqY z/RZmqfKzv22tik6kXbIGfrsaHIG3t3GeDrjAM01yyTvNMEnZXgEnDhCBgJ/RyMjQAis9R DbVh9h/LJZW/lKIhzm8ou+5knKXT0aOj75sOz228qr3XazCUi9oHZon59YWO103rReGUHq ySOmc2sIvMBCLAzstF6ES/QP3tPxH24WJf2VIBJNtimLluHeMudByBn2Y1HYPw== Content-Type: text/plain; charset=UTF-8 From: "Chuyi Zhou" Content-Transfer-Encoding: 7bit References: <20260513124524.2569867-1-zhouchuyi@bytedance.com> X-Lms-Return-Path: X-Mailer: git-send-email 2.20.1 To: , , , , , , , , , , , , In-Reply-To: <20260513124524.2569867-1-zhouchuyi@bytedance.com> X-Original-From: Chuyi Zhou Subject: [RESEND PATCH v5 08/12] 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 Cc: , "Chuyi Zhou" Date: Wed, 13 May 2026 20:45:20 +0800 Message-Id: <20260513124524.2569867-9-zhouchuyi@bytedance.com> 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 --- kernel/smp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/smp.c b/kernel/smp.c index fa35c5725c98..145f097a028b 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -1132,9 +1132,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