From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B1F8C282CE for ; Wed, 22 May 2019 14:43:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 23DE221473 for ; Wed, 22 May 2019 14:43:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729548AbfEVOnf (ORCPT ); Wed, 22 May 2019 10:43:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbfEVOne (ORCPT ); Wed, 22 May 2019 10:43:34 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 CD2DA20821; Wed, 22 May 2019 14:43:33 +0000 (UTC) Date: Wed, 22 May 2019 10:43:32 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Viktor Rosendahl , Ingo Molnar , linux-kernel@vger.kernel.org, Joel Fernandes , "Rafael J . Wysocki" Subject: Re: [PATCH v4 1/4] ftrace: Implement fs notification for tracing_max_latency Message-ID: <20190522104332.3564e82f@gandalf.local.home> In-Reply-To: <20190522143545.GG16275@worktop.programming.kicks-ass.net> References: <20190521120142.186487e9@gandalf.local.home> <20190522003014.1359-1-viktor.rosendahl@gmail.com> <20190522143545.GG16275@worktop.programming.kicks-ass.net> 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 Wed, 22 May 2019 16:35:45 +0200 Peter Zijlstra wrote: > > @@ -284,6 +285,7 @@ static void do_idle(void) > > smp_mb__after_atomic(); > > > > sched_ttwu_pending(); > > + /* schedule_idle() will call trace_enable_fsnotify() */ > > schedule_idle(); > > > > if (unlikely(klp_patch_pending(current))) > > I still hate this.. why are we doing this? We already have this > stop_critical_timings() nonsense and are now adding more gunk. I was thinking that this can possibly be added in the stop_critical_timings() as that is probably where this is needed anyway. -- Steve