From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F3508407596 for ; Thu, 19 Mar 2026 23:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773962675; cv=none; b=fBxFqmKsNm2Io08SzmWfO5oZz4l00EoD0FXY5Kg+BPl+WFc5LWupz4XgwdeImt7YTFSFeJQ5Wp/IwqBd4dA5t2LnwJC71G0noHdvoux0uL/isPnKRbaHO4g4kVhnomkk4q/uhTLgH2rKTjocG8bzctteiBQYMxaoZLlavd3FedM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773962675; c=relaxed/simple; bh=Cg46Qjbl5su5e9KFnkROnCBlKjOorGzC4Epw0bVW1+s=; h=Date:Message-ID:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=dtMDc3boCX+efEDqnBPtpuvqmBIn5rSqPKVqPzbnRQisRIVlkg08QYorkCrJXLXsHpz9yN3cnonFU5kI2QVdfOmAXytIDhICmCUIKgpmjD0e2q66SYxrqXN0ImsttbMsy9RwoQNGE+zyvqZBobfdIA7cLKJq424oeTi/DVjl6y4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vPoH6BBl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vPoH6BBl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1425EC2BCAF; Thu, 19 Mar 2026 23:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773962674; bh=Cg46Qjbl5su5e9KFnkROnCBlKjOorGzC4Epw0bVW1+s=; h=Date:From:To:Cc:Subject:References:From; b=vPoH6BBlWFQdyfk/Ox5/uhyf62LL27zAUNUKG9Mi1eDoksaKAq1iH20uZsN1oR6gz N1mRVuMgkw21RpxgJ8kXs3C9loKZIj/hsmlGkeDdb8N4gQDaWdKxK79A2uJietLkSQ t3+BGFOfsUvedr2Vr1Oyl0Krp2DhBFW5GwzXOiF58HKKIkc5UMzp28pRMA/iujzEQ+ UomDXJ+5I6g0Ny2Hroh24PG1z6z63Nxo/vhkucZO/MtbpN6cUonuo1oxlzKElSverD j5ih83ZxgqfZR+CLlCqxR+uGkjkGdAMb9TrK4QjmkWQ7q5CPK7X/WfiwgUdBHxIjfu Incc+bMeHPVAA== Date: Fri, 20 Mar 2026 00:24:31 +0100 Message-ID: <20260319231239.477866560@kernel.org> User-Agent: quilt/0.68 From: Thomas Gleixner To: LKML Cc: Mathieu Desnoyers , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Sebastian Andrzej Siewior , Carlos O'Donell , Peter Zijlstra , Florian Weimer , Rich Felker , Torvald Riegel , Darren Hart , Ingo Molnar , Davidlohr Bueso , Arnd Bergmann , "Liam R . Howlett" , Uros Bizjak , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Subject: [patch v2 05/11] x86: Select ARCH_STORE_IMPLIES_RELEASE References: <20260319225224.853416463@kernel.org> 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 The generic unsafe_atomic_store_release_user() implementation does: if (!IS_ENABLED(CONFIG_ARCH_STORE_IMPLIES_RELEASE)) smp_mb(); unsafe_put_user(); As stores on x86 imply release, select ARCH_STORE_IMPLIES_RELEASE to avoid the unnecessary smp_mb(). Signed-off-by: Thomas Gleixner --- V2: New patch --- arch/x86/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -119,6 +119,7 @@ config X86 select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO select ARCH_STACKWALK + select ARCH_STORE_IMPLIES_RELEASE select ARCH_SUPPORTS_ACPI select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_DEBUG_PAGEALLOC