From nobody Mon Feb 9 20:09:33 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 1E3222D249B for ; Tue, 3 Feb 2026 11:26:59 +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=1770118022; cv=none; b=VJRe81VVkIxdoU67cRr5YW3iNxYc6yNtgnlJA7ygwYYjgrE9kImjZOx5FCcb9SJHv20+97UlTsb6kCYTYFY600YJcswi5I9oRsoaJDvLQPJIHBrU+vC7aorTw9dMFF9JMe+bFKIGD6LvhgQ36cqUJIeizwO1KUQ+8nEVFBb6D+8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770118022; c=relaxed/simple; bh=kfQMDDOCBw2RxJxJcki6FLp7F2ni4+ObQHxScepTCBs=; h=To:In-Reply-To:Mime-Version:Cc:Subject:References:Content-Type: From:Date:Message-Id; b=D1v3FtRTABrs0YK3Zc+UJyu4I1BWQTVDf2WlDy6zefbKmlTE3lHRN9ZOEWwOSp3SzNta7Z/rlOMrBT8q603nWleZUxGXNj/IW4cwPLEA15+DFqY37q1p0cxy8XmnqqZiOP8KgGYgDFYxBQmNg1h/W1m0ILqSY6nhnfkwIVdbW1o= 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=QADM8//Q; 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="QADM8//Q" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=2212171451; d=bytedance.com; t=1770118008; h=from:subject: mime-version:from:date:message-id:subject:to:cc:reply-to:content-type: mime-version:in-reply-to:message-id; bh=QkSROuoaLhphb9KijzT8lWhQJTKfiUdn7qfrFD5oeP8=; b=QADM8//Q22CPrrsHuEES25lgQQGw7kWSxlrB3hT+Re35hdbUBfJeRvNBJvE26K6kPu3Tbw Whpw+zJjSEAXP9KdIjXhblwZnxWrqMuJ2qrSZwTKTjubeGA8WHnvWK7uZVK2pbkdxU4CCI qA8MWWazTskiL7GEb/TtRa+Q4c9hl+3UUzF6z4TekVwDh0F7MJQB2ZG72+lnU1rIsuK/Ji ZSYD4yqi6hyb4zwiiYSW5pzmxLUePDimnXjZ9RJ862mi2fsyhQ0EMP4VVTjAv+OyI+JT8F DWjJ4CC/8cGSeOLAUPZRsM5hcJWg50dKYt7rS9E2XtMu1DulQ0YYFlo/y+39MA== To: , , , , , , , In-Reply-To: <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 Content-Transfer-Encoding: quoted-printable X-Original-From: Chuyi Zhou X-Lms-Return-Path: Cc: , "Chuyi Zhou" Subject: [PATCH 07/11] smp: Remove preempt_disable from on_each_cpu_cond_mask References: <20260203112401.3889029-1-zhouchuyi@bytedance.com> From: "Chuyi Zhou" Date: Tue, 3 Feb 2026 19:23:57 +0800 Message-Id: <20260203112401.3889029-8-zhouchuyi@bytedance.com> X-Mailer: git-send-email 2.20.1 Content-Type: text/plain; charset="utf-8" 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 088b581003fb..c859076239c4 100644 --- a/kernel/smp.c +++ b/kernel/smp.c @@ -1097,9 +1097,7 @@ void on_each_cpu_cond_mask(smp_cond_func_t cond_func,= smp_call_func_t func, if (wait) scf_flags |=3D SCF_WAIT; =20 - preempt_disable(); smp_call_function_many_cond(mask, func, info, scf_flags, cond_func); - preempt_enable(); } EXPORT_SYMBOL(on_each_cpu_cond_mask); =20 --=20 2.20.1