From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-176.mta1.migadu.com (out-176.mta1.migadu.com [95.215.58.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2F5DC3B7B8E for ; Tue, 10 Mar 2026 07:13:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773126785; cv=none; b=YNgeDI+LvFJUggKgbqqwDOolTXpJvP/G+SgvfcCPAGPzO+GSKgTPV7MB5xK+Umn21/AUGC+5vedObW71yeToifffRJivjQMXJ2iU9i4RJdrhzmvzLkxDSXqKsV8apbGhezrhPKF+eQOUfxWKPui6JowYUaGXXLPdUvELbTpMLkk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773126785; c=relaxed/simple; bh=GH/m5CcFaZGPt0OTFYvAzHGnRs8KbWiiJWKKqBxBz/g=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=rn9PMLD8aFrkHak3q2ZeiwSFFowbHY2fAR1Es5udQ8KeiRe+AabZiY4FYUVlBfOG7scTtlowHwXKF0OIlmXxI8myrZtx66/Dl52CpW9g6x9k9eYc5NxNo3QEJ27HhABpHJ9jRIoBzHf5mBqZ1KpwPquQ6k9BeJN9WNJW+X5VxKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=tAbpRPhG; arc=none smtp.client-ip=95.215.58.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tAbpRPhG" Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1773126779; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VKoyKM0nfZ+sQS1/rhCLKEr7e1TOQDo7V9O/n93fPR4=; b=tAbpRPhGhXqcm3Ad8A1bfOprcqixJQc5zjdYB0ngdAnHH6GFBr1wGCO5udETC51GobWrYw oeMtaDhxmOXJx87xogO2XHpyYfhuK25QNtuoJ8nM2IW93HRoDcKBzfd8v9vYqPi9KznZfZ 3lKfBEl+EUxA2w0jFCBL9tyEnt3vRfA= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: [PATCH v2 04/12] smp: Use on-stack cpumask in smp_call_function_many_cond X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20260302075216.2170675-5-zhouchuyi@bytedance.com> Date: Tue, 10 Mar 2026 15:12:18 +0800 Cc: tglx@linutronix.de, mingo@redhat.com, luto@kernel.org, peterz@infradead.org, paulmck@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, pbonzini@redhat.com, bigeasy@linutronix.de, clrkwllms@kernel.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: References: <20260302075216.2170675-1-zhouchuyi@bytedance.com> <20260302075216.2170675-5-zhouchuyi@bytedance.com> To: Chuyi Zhou X-Migadu-Flow: FLOW_OUT > On Mar 2, 2026, at 15:52, Chuyi Zhou wrote: > > This patch use on-stack cpumask to replace percpu cfd cpumask in > smp_call_function_many_cond(). Note that when both CONFIG_CPUMASK_OFFSTACK > and PREEMPT_RT are enabled, allocation during preempt-disabled section > would break RT. Therefore, only do this when CONFIG_CPUMASK_OFFSTACK=n. > This is a preparation for enabling preemption during csd_lock_wait() in > smp_call_function_many_cond(). > > Signed-off-by: Chuyi Zhou Reviewed-by: Muchun Song Thanks.