From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755342Ab3JCUHP (ORCPT ); Thu, 3 Oct 2013 16:07:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54709 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754548Ab3JCUHN (ORCPT ); Thu, 3 Oct 2013 16:07:13 -0400 Date: Thu, 3 Oct 2013 22:00:02 +0200 From: Oleg Nesterov To: "Paul E. McKenney" Cc: Peter Zijlstra , Mel Gorman , Rik van Riel , Srikar Dronamraju , Ingo Molnar , Andrea Arcangeli , Johannes Weiner , Thomas Gleixner , Steven Rostedt , Linus Torvalds , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] rcu: Create rcu_sync infrastructure Message-ID: <20131003200002.GA23768@redhat.com> References: <20131002145655.361606532@infradead.org> <20131002150518.675931976@infradead.org> <20131003164117.GD5790@linux.vnet.ibm.com> <20131003184001.GM28601@twins.programming.kicks-ass.net> <20131003184719.GA11996@redhat.com> <20131003192135.GR5790@linux.vnet.ibm.com> <20131003193206.GA17796@redhat.com> <20131003193319.GB17796@redhat.com> <20131003195026.GT5790@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131003195026.GT5790@linux.vnet.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/03, Paul E. McKenney wrote: > > On Thu, Oct 03, 2013 at 09:33:19PM +0200, Oleg Nesterov wrote: > > On 10/03, Oleg Nesterov wrote: > > > > > > Because I believe this needs another patch ;) see below, didn't test > > > it yet. > > > ... > > > struct rcu_sync_ops { > > > void (*sync)(void); > > > void (*call)(struct rcu_head *, void (*)(struct rcu_head *)); > > > +#ifdef CONFIG_PROVE_RCU > > > + bool (*held)(void); > > ^^^^ > > OK, it has to return "int". > > I missed this, but the rest looked good. ;-) OK thanks ;) So unless Peter objects I'll write the changelogs (always nontrivial task), test, and send these 2 patches + "add ops->barr() / rcu_sync_wait_for_cb" tomorrow. Oleg.