Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754333AbcCWIa3 (ORCPT ); Wed, 23 Mar 2016 04:30:29 -0400 Received: from mail.skyhub.de ([78.46.96.112]:55305 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753693AbcCWIaX (ORCPT ); Wed, 23 Mar 2016 04:30:23 -0400 Date: Wed, 23 Mar 2016 09:30:11 +0100 From: Borislav Petkov To: Davidlohr Bueso Cc: tony.luck@intel.com, mingo@kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH -tip] x86/mce: Use atomic_inc_return barrier when starting monad sync Message-ID: <20160323083011.GD6614@pd.tnic> References: <1458602396-840-1-git-send-email-dave@stgolabs.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1458602396-840-1-git-send-email-dave@stgolabs.net> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 529 Lines: 18 On Mon, Mar 21, 2016 at 04:19:56PM -0700, Davidlohr Bueso wrote: > mce_start() has an explicit smp_wmb to serialize writes to > global_nwo and mce_callin. However, atomic_inc_return() implies > barriers on both sides of the call, as such simply rely on this > full smp barrier. > > Signed-off-by: Davidlohr Bueso > --- > arch/x86/kernel/cpu/mcheck/mce.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied, thanks. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.