From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752461AbdGaPEj (ORCPT ); Mon, 31 Jul 2017 11:04:39 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38158 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752316AbdGaPEf (ORCPT ); Mon, 31 Jul 2017 11:04:35 -0400 Date: Mon, 31 Jul 2017 17:04:11 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: jkosina@suse.cz, masami.hiramatsu.pt@hitachi.com, hpa@linux.intel.com, linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [RFC][PATCH]: x86: clarify/fix no-op barriers for text_poke_bp() Message-ID: <20170731150411.wff4c5qyanv7xtfy@hirez.programming.kicks-ass.net> References: <20170731102154.f57cvkjtnbmtctk6@hirez.programming.kicks-ass.net> <20170731102323.096376f5@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170731102323.096376f5@gandalf.local.home> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31, 2017 at 10:23:23AM -0400, Steven Rostedt wrote: > > - smp_wmb(); > > Heh, I think this was a "lets not leak bp_patching_in_progress" out of > this function. But I don't see any harm if it happens. > > As this function was a *very* slow path, that smp_wmb() was a "it's not > really needed, but it wont hurt anything to slap it in there just in > case". Well, this is x86, its a NO-OP. The only reason to write barriers like that is for documentation purposes and in that regard is confuses. IOW has negative value.