Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1267163imm; Tue, 15 May 2018 16:57:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpdRbaKQH3YtYOPL2WGUT1mAYHfH9+quX3VetnK/SgtlRK6YY4DHezdg7rAKTDYse0Ldol0 X-Received: by 2002:a17:902:6181:: with SMTP id u1-v6mr16281288plj.272.1526428656702; Tue, 15 May 2018 16:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526428656; cv=none; d=google.com; s=arc-20160816; b=Z+Dp9hiD/J2poSnQSZgWWWe9PR59YY4B6ymWDe6Uxrh4f2+aoTtBuDVFQeMy9xLafm OXLQyXB96zeSXOglcDF4rUvdrWZ8ihMaTXUDbiJSlCmxJBK4w3y/ZSstIpThAMhdjbXD x1OSbokNdwe7yDXhQSKNVXxFitFjeuP9cjw/O0KeMev4rpObI8+jJIXo1jBjhwia6rHz dDYGhuqWMUVTYHyQTjvqei7lOqhrpi3gBh6QqRhQ+7P/OBPwojBNGK412cqwKt12a0G7 wMXIGYsJpztzSfXVosbMpWFHkJy3iyY/O2j+yW9za0R6LaHWb0w9UMd62Rf0TJD+kM7r ch6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=+gjXk/AUB6KXCRWub05hWpHub5Oal8udnCKKJ2c02fI=; b=jMRTVqNTX8dqIWH9rN844KNn7ntv4ZGFXztmf99OZ13dmTiJId1L5QZ38GhgABjknU xt7frDYolHtUxlluSEmz58h0SnDor46n46J1L/xVNat47d2mOvpLvfw+5eQFutAOCzCb KwtdXf0MnzhA+cgqcr+Ony17j92WnjVFCaC6PTE9fC912MozqslvJZfkWLGrjKVcjfQO cRcIDTf5xw+oSk8qnDVMFjeBE8aJ6K2cvnKn8IIbmFFhdzmwI+EE6trJzzxLvewTXCzT c/18LVsNBa9DCwnl01Jyc7NaL1/0JpML5ydcwgPau0IFf0h1b4yDxj/0MUuFHR+VrhlJ wC0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jY7i8MNV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4-v6si1067113plm.448.2018.05.15.16.57.22; Tue, 15 May 2018 16:57:36 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jY7i8MNV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbeEOX46 (ORCPT + 99 others); Tue, 15 May 2018 19:56:58 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34505 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751333AbeEOX44 (ORCPT ); Tue, 15 May 2018 19:56:56 -0400 Received: by mail-wm0-f66.google.com with SMTP id a137-v6so17715976wme.1 for ; Tue, 15 May 2018 16:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+gjXk/AUB6KXCRWub05hWpHub5Oal8udnCKKJ2c02fI=; b=jY7i8MNVDuBGaYs76H8WvHAlOR5239a38PCn9ulbEYdEoiCqml9CuhgzaHsqPeOP1k G/HGgSTdIdWQKCz8TPnCfrEEIunWfI2vs+1MpuOtqs8tzUkiEL5sq+pMDlfjRkyiNfMr ofYEjtbnHYPlS3/wWlrn0ow1RBwUc+t0qEF3Kbuhn2bwCJw5f74zFKkpCsL7X59BbgLQ D8Nm1G8FjJPKHsF2wkaeODRTj6AQ5ZdEDMLdX/NAgayd0S74IAumeoSh5tQZ/+vityuU eroxUHh5wNeJ7naWyS/42hqUO+nKxtGbTBHzdQ2OqZcFAqy4VKCjl7I0bJqc8iSqzLQu G2RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+gjXk/AUB6KXCRWub05hWpHub5Oal8udnCKKJ2c02fI=; b=qPlhwiGf/NbPZqDfs8RDFdEUJLgJD432kF++E/06u+1yoa6Sbk0KTNIeent/DnNJVf RZhWG6Bxl9SJnMVlKH5tCwsf+TEg7SJj+JpRNCvKFKbvWDo9pnizOJ1sIRqPU9WeSsa+ Pd0QT1qqtlLyXpcec75wrc73Y85QWkigjXr5fmyksLP0Mut4zDII5X8Uar2VAHKKy5Vg 7cR74sR+98ZpGkOAD0MEGvHYkPH1XpvxtpOdtdqyhR7UXNB9NmsaG20PnCLfOMbi/h7E MqDnGe9TuT2i7KeYbsuhMh4LuodJ8iO/NSge3IWmv/5N8GETNsHr+7y2rHOiIHTolCIP dYkw== X-Gm-Message-State: ALKqPwfVO00C6cK4LvUACn5nzJVyWMA0aq32qS2U7ttPZhZh2BZWBVuV WOtKcz6OlnGKkHFO5I1QwJAR5WyYWoJVBfm38Q8= X-Received: by 2002:a50:a245:: with SMTP id 63-v6mr20818711edl.295.1526428614669; Tue, 15 May 2018 16:56:54 -0700 (PDT) MIME-Version: 1.0 References: <20180515224559.199279-1-joel@joelfernandes.org> <20180515224559.199279-3-joel@joelfernandes.org> In-Reply-To: <20180515224559.199279-3-joel@joelfernandes.org> From: Joel Fernandes Date: Tue, 15 May 2018 16:56:43 -0700 Message-ID: Subject: Re: [PATCH v7 2/6] srcu: Add notrace variants of srcu_read_{lock,unlock} To: Joel Fernandes Cc: Linux Kernel Mailing List , Paul McKenney , Steven Rostedt , Peter Zijlstra , Ingo Molnar , Mathieu Desnoyers , Tom Zanussi , Namhyung Kim , Thomas Gleixner , Boqun Feng , Frederic Weisbecker , Randy Dunlap , Masami Hiramatsu , Fenguang Wu , Baohong Liu , Vedang Patel , kernel-team@android.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Something is majorly messed up with my SMTP server. Only half of the patches in this series were sent out and the ones that did go out were random. I keeping getting this as replies for the one's that didn't go out: https://support.google.com/mail/answer/6596?visit_id=1-636620224226493206-2884214369&rd=1 And its intermittent too.. I am going to spend a bit of time to figure out why it happened so it doesn't happen again. Sorry about the noise. Sigh, - Joel On Tue, May 15, 2018 at 3:47 PM Joel Fernandes (Google) < joel@joelfernandes.org> wrote: > From: Paul McKenney > This is needed for a future tracepoint patch that uses srcu, and to make > sure it doesn't call into lockdep. > tracepoint code already calls notrace variants for rcu_read_lock_sched > so this patch does the same for srcu which will be used in a later > patch. Keeps it consistent with rcu-sched. > [Joel: Added commit message] > Cc: Steven Rostedt > Cc: Peter Zilstra > Cc: Ingo Molnar > Cc: Mathieu Desnoyers > Cc: Tom Zanussi > Cc: Namhyung Kim > Cc: Thomas Glexiner > Cc: Boqun Feng > Cc: Paul McKenney > Cc: Frederic Weisbecker > Cc: Randy Dunlap > Cc: Masami Hiramatsu > Cc: Fenguang Wu > Cc: Baohong Liu > Cc: Vedang Patel > Cc: kernel-team@android.com > Reviewed-by: Steven Rostedt (VMware) > Signed-off-by: Paul McKenney > Signed-off-by: Joel Fernandes (Google) > --- > include/linux/srcu.h | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > diff --git a/include/linux/srcu.h b/include/linux/srcu.h > index 33c1c698df09..2ec618979b20 100644 > --- a/include/linux/srcu.h > +++ b/include/linux/srcu.h > @@ -161,6 +161,16 @@ static inline int srcu_read_lock(struct srcu_struct *sp) __acquires(sp) > return retval; > } > +/* Used by tracing, cannot be traced and cannot invoke lockdep. */ > +static inline notrace int > +srcu_read_lock_notrace(struct srcu_struct *sp) __acquires(sp) > +{ > + int retval; > + > + retval = __srcu_read_lock(sp); > + return retval; > +} > + > /** > * srcu_read_unlock - unregister a old reader from an SRCU-protected structure. > * @sp: srcu_struct in which to unregister the old reader. > @@ -175,6 +185,13 @@ static inline void srcu_read_unlock(struct srcu_struct *sp, int idx) > __srcu_read_unlock(sp, idx); > } > +/* Used by tracing, cannot be traced and cannot call lockdep. */ > +static inline notrace void > +srcu_read_unlock_notrace(struct srcu_struct *sp, int idx) __releases(sp) > +{ > + __srcu_read_unlock(sp, idx); > +} > + > /** > * smp_mb__after_srcu_read_unlock - ensure full ordering after srcu_read_unlock > * > -- > 2.17.0.441.gb46fe60e1d-goog