From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 1CAD4376A0E for ; Tue, 16 Jun 2026 13:14:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781615669; cv=none; b=c7TRxuN7OIzthLcZFoPiZl5gSONPMGYBmOLnrj8hc+6yrxDdh+DnShnLvfJR6aRjZjaNcI3T4HaJLhSyPSAFTtmGFYBXWfCwo9HkhJ+k+itRLrmgo+5bOcVt0+IzFwoY0tEvsH45fc7bZ3g9uhBjfZpNC54B2I+rpUagPz9vwgA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781615669; c=relaxed/simple; bh=9M67JvZgR0OfYsGqGQOhPJJwuqIJ4KGuVl1amKBAVjA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j0SZQfkJeBdi3SlTFqWXfoJzRsqEIFHJl3Fn1LPSlAnhEdAVcxTHbrbTfNy6Hi/rKKfdB08yWMBlOlbZ1n7jlp7/sCaL41qJon7EzIEmFxwLnclk8V4Cc/RMG3gia0GlDQeWLcDzsUnSnPf8N7u0VL4qloKsJAvydBAova8hS0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=GS6OZr1x; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ts5l9VqF; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="GS6OZr1x"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ts5l9VqF" Date: Tue, 16 Jun 2026 15:14:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1781615665; 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: in-reply-to:in-reply-to:references:references; bh=cH3a5JCtviPXQlRwQmPwBvg2iSipUs+s+pbLrqEae8w=; b=GS6OZr1xePEhF6CIatNrRtYmpVN8D3/N1gjV05992n/5cx4K2OID9x8zfrDlNzRtXjPw6Z Q8ZeF8bi9nTKGR2e8ldl/a+qeNQyD8MHboyuSfCpJxUyuZmZJTJ4+wyc6O/jsoAuMFnguI TY/WQ+oujycK/ENI5fXulahjyoIWp56yWTqEoPaz/rt37UhgQj8RMjbfQELVkE7BeCnPCU XMya8SQAgzlcKoORZqG9af56+F1EZut6M158F6ls4I7ALiY/BClYpAAwfYBH21a8t/wQ4W 7rUFgqWUbEycVDYorniNh+nnhEHpco17jRMHOaX9jIyPVjS7ovpDy5wkELBATg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1781615665; 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: in-reply-to:in-reply-to:references:references; bh=cH3a5JCtviPXQlRwQmPwBvg2iSipUs+s+pbLrqEae8w=; b=ts5l9VqF+DzYlQO/En4jWVBfx0uVEiIAbvMx8qYFeC7cKPssy9crrsv1Xuh45tG9bHC/WB BIiD58pDqdUicaAg== From: Sebastian Andrzej Siewior To: Chuyi Zhou Cc: tglx@kernel.org, mingo@redhat.com, luto@kernel.org, peterz@infradead.org, paulmck@kernel.org, muchun.song@linux.dev, bp@alien8.de, dave.hansen@linux.intel.com, pbonzini@redhat.com, clrkwllms@kernel.org, rostedt@goodmis.org, nadav.amit@gmail.com, vkuznets@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 10/14] x86/mm: Factor out flush_tlb_info initialization Message-ID: <20260616131423.RAUf1C_N@linutronix.de> References: <20260616111127.966468-1-zhouchuyi@bytedance.com> <20260616111127.966468-11-zhouchuyi@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20260616111127.966468-11-zhouchuyi@bytedance.com> On 2026-06-16 19:11:23 [+0800], Chuyi Zhou wrote: > get_flush_tlb_info() currently does two things: it reserves the per-CPU > flush_tlb_info storage and initializes the fields that describe the > flush. > > Split the field setup into init_flush_tlb_info(). The per-CPU storage, > DEBUG_VM reentrancy check and put_flush_tlb_info() lifetime rules are > unchanged. > > This is a preparatory cleanup for allowing callers to provide their own > flush_tlb_info storage. > > Signed-off-by: Chuyi Zhou Reviewed-by: Sebastian Andrzej Siewior Sebastian