Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp579448ybe; Wed, 4 Sep 2019 04:41:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyM4RKyK8th0Nw8pnsrhbXxnGoSzMe+5dkRNrdoi32BmWLL4WUFRI1UmuN3jXZWddiiPM38 X-Received: by 2002:a63:2744:: with SMTP id n65mr34489199pgn.277.1567597319472; Wed, 04 Sep 2019 04:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567597319; cv=none; d=google.com; s=arc-20160816; b=UN1noKk0WJuG+kmY++raMBCgjLgfshGEpWJErkBEAbiVkQTWmZPjbbI7/t+bOokpQQ 38p79wVoAMyhK0zPR3sEXsp2NBWpN7U19RW8XLMMkDJywSGTSmMfo/SFVB2E/qb0gfsP cg+FRd5M6vsLO0F0BdL0QsgCpQrnpa08/nLOz28lNJ7oJLDQABhzugwr2WBLTzxcgFvy AgiJ3JRRyQKFS4eIRreYNqLbBKVOOWd8w54gFUUAjMBAEssS4gcYST9kduvNpYJ8gzkb wqGWw9z5U87QieRDycqzFkQ6eqYJOT9oW37cgOudj/GkGHUfjebzoCtaAybsAgMDcj/h AXGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=66JZP/mQyU2zTgKEdvvjuyk4CcVmg8AqLKsdnbw7lCk=; b=ZwqmH/Fufb6MWcaPEIeU1/djMlztJMmwT+A1ejBFxbctOF2npjGH2EvnwddfUPJo8v uNuKqIRGIk/xDyk8E7gc+wSKSmYtaRVZ5D0jA3u9ypwCRGj3rSMw3sU77Dh47eCUOZAL npiTyKwUa8ke00t3xbDkqAaSFijr3tEHMyvOb8xslHwi3cm3eUS9Dsdp7+m0UUdYWTHc TLEHoBX1Ezw1LswTn91xlLdu2BciW9QueMe1sGTBPc2tvAWBuLaLbFVHGddXo8RpvdG3 mbVwUqeFe/3DWXmZ7SgYpoabzrqCJirhFJ7XrtUVSpTOKXO0njDQN1Di76Aq5rvz1aeE N9GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si16619837pgv.164.2019.09.04.04.41.43; Wed, 04 Sep 2019 04:41:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728021AbfIDLjX (ORCPT + 99 others); Wed, 4 Sep 2019 07:39:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:53510 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727083AbfIDLjX (ORCPT ); Wed, 4 Sep 2019 07:39:23 -0400 Received: from oasis.local.home (bl11-233-114.dsl.telepac.pt [85.244.233.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A9BB20820; Wed, 4 Sep 2019 11:39:20 +0000 (UTC) Date: Wed, 4 Sep 2019 07:39:15 -0400 From: Steven Rostedt To: Viktor Rosendahl Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Joel Fernandes , Peter Zijlstra Subject: Re: [PATCH v5 1/4] ftrace: Implement fs notification for tracing_max_latency Message-ID: <20190904073915.4a145a91@oasis.local.home> In-Reply-To: <20190903132602.3440-2-viktor.rosendahl@gmail.com> References: <20190903132602.3440-1-viktor.rosendahl@gmail.com> <20190903132602.3440-2-viktor.rosendahl@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Sep 2019 15:25:59 +0200 Viktor Rosendahl wrote: > +void latency_fsnotify_stop(void) > +{ > + /* Make sure all CPUs see caller's previous actions to stop tracer */ > + smp_wmb(); These memory barriers just look wrong. What exactly are you trying to protect here? Where's the matching rmbs? -- Steve > + static_branch_disable(&latency_notify_key); > + latency_fsnotify_process(); > +} > + > +void latency_fsnotify_start(void) > +{ > + static_branch_enable(&latency_notify_key); > + /* Make sure all CPUs see key value before caller continue */ > + smp_wmb(); > +} > +