Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp782513imm; Wed, 8 Aug 2018 05:48:21 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxbIeMHDm4cpAKyLGNietYUNmlfOPR1qr5H1BtS+vLkAsodN/LcPVwsA/+5eS6E2M3J0eJX X-Received: by 2002:a62:2f84:: with SMTP id v126-v6mr2823526pfv.115.1533732501506; Wed, 08 Aug 2018 05:48:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533732501; cv=none; d=google.com; s=arc-20160816; b=iaXrUaOT9ECNzfSTdZsSSrnVuaZ61XC/3Pm2wRVPzoB1Ex/xo64TWyODXfq+q44pTU CfdDhx6Ih5SpbOJp0CvwGSUpF4yRz4WucGpsqAgGguCI2rb3J4pM6AzfREU5GdtI7i+O giF8nQrUJ+5d05oxaKRCp+82h6xFwqT59WKg/U4cYM7F9dtKAKgx/0T8c/cM+0G7E+X5 X6qJNWtOOKGcAZ3s2WMvA1C81GzIydgZarmaA/izHAHQGvCNixmFvSqxK//nVrPGDOSi gDwQcZ/iycWra4aIX71xe/ig8Rv1P9HnDNJGsL9PRzttWSQihPn8DeupmFTJ85cK9cT9 f5Tg== 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 :arc-authentication-results; bh=LHjy+sYH35MK8Y/QbXuOYgG0/pbtN+w2wim6tmgH6D0=; b=xYz2GPl9XFYqvekimutflFYH4Jevz1wDMeT5HFyKomGSTf8xFHGzA/rxCsxOpHHnbD xIAUhDDMO3c8QaNf/5kw+OIJVgPJNvVqrM7a1fmu2eULyN1seqysG1YNBYYtmPa0uvG+ QdJyrXZIf1AL6P5IzmR0NAASQwLioiSNXFs5Osf3jur/Ye7JDivrJzWHXzZGsvd6FZR7 Vya05qZd5iGCSLSxwRGMQGP8bye/yDHQ5jqHPfjCWk9pcOatABwp1LBNC8cZC9Y+T3Ia QJnDvQTl3Tv/OU0rPUTvAsAv6zeuAnxRDXpiJCw6mqlKB3SSddd+dQ7PzjEVm73eVC3/ Duug== 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 a67-v6si3586273pla.135.2018.08.08.05.48.06; Wed, 08 Aug 2018 05:48:21 -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 S1727168AbeHHPGF (ORCPT + 99 others); Wed, 8 Aug 2018 11:06:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:36094 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbeHHPGF (ORCPT ); Wed, 8 Aug 2018 11:06:05 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (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 49E0521742; Wed, 8 Aug 2018 12:46:31 +0000 (UTC) Date: Wed, 8 Aug 2018 08:46:29 -0400 From: Steven Rostedt To: Joel Fernandes Cc: Joel Fernandes , LKML , "Cc: Android Kernel" , Boqun Feng , Byungchul Park , Ingo Molnar , Masami Hiramatsu , Mathieu Desnoyers , Namhyung Kim , Paul McKenney , Peter Zijlstra , Thomas Glexiner , Tom Zanussi Subject: Re: [PATCH v12 3/3] tracing: Centralize preemptirq tracepoints and unify their usage Message-ID: <20180808084629.3290d1d6@gandalf.local.home> In-Reply-To: References: <20180730222423.196630-1-joel@joelfernandes.org> <20180806214300.13e63523@gandalf.local.home> <20180807094954.5137972d@gandalf.local.home> <446AE5F2-39E0-46B6-8E0B-207E003DBF20@google.com> <20180807103410.4fe203cb@gandalf.local.home> <20180807110906.3a1b0ac4@gandalf.local.home> <6B9E5DC9-0859-41B4-9B72-A7D85E9EA2AD@google.com> <20180807194515.4e549c1a@gandalf.local.home> <6D0A3FD6-2190-4CC0-A3C0-7B3759E73243@google.com> <20180807204820.50b83c6d@vmware.local.home> <20180807215522.04114097@vmware.local.home> <20180807222856.3ede96e7@vmware.local.home> X-Mailer: Claws Mail 3.16.0 (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, 7 Aug 2018 20:53:54 -0700 Joel Fernandes wrote: > > When I talked to Paul few months ago about SRCU from NMI context, he > > mentioned the per-cpu memory operations during srcu_read_lock can be > > NMI interrupted, that's why we added that warning. > > So I looked more closely, __srcu_read_lock on 2 different handles may > still be doing a this_cpu_inc on the same location.. > (sp->sda->srcu_lock_count). :-( > > Paul any ideas on how to solve this? > > It does start to seem like a show stopper :-( What's wrong with a this_cpu_inc()? It's atomic for the CPU. Although it wont be atomic for the capture of the idx. But I also don't see interrupts being disabled, thus an NMI is no different than any interrupt doing the same thing, right? -- Steve