From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756166Ab3JHVnM (ORCPT ); Tue, 8 Oct 2013 17:43:12 -0400 Received: from e32.co.us.ibm.com ([32.97.110.150]:54596 "EHLO e32.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755502Ab3JHVnK (ORCPT ); Tue, 8 Oct 2013 17:43:10 -0400 Date: Tue, 8 Oct 2013 14:43:00 -0700 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Ingo Molnar , Ingo Molnar , Oleg Nesterov , Linus Torvalds , Thomas Gleixner , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/16] sched/wait: Collapse __wait_event macros -v5 Message-ID: <20131008214300.GY5790@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20131004204405.GU3081@twins.programming.kicks-ass.net> <20131004204438.GR26785@twins.programming.kicks-ass.net> <20131005080416.GA25193@gmail.com> <20131008095927.GS3081@twins.programming.kicks-ass.net> <20131008102331.GB8852@gmail.com> <20131008141657.GW5790@linux.vnet.ibm.com> <20131008194718.GD7315@gmail.com> <20131008200155.GD13848@laptop.programming.kicks-ass.net> <20131008204129.GS5790@linux.vnet.ibm.com> <20131008210607.GV3081@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131008210607.GV3081@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13100821-0928-0000-0000-0000026049F6 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2013 at 11:06:07PM +0200, Peter Zijlstra wrote: > On Tue, Oct 08, 2013 at 01:41:29PM -0700, Paul E. McKenney wrote: > > On Tue, Oct 08, 2013 at 10:01:55PM +0200, Peter Zijlstra wrote: > > > On Tue, Oct 08, 2013 at 09:47:18PM +0200, Ingo Molnar wrote: > > > > To me it would sure look nice to have kernel/rcu/tree.c, > > > > kernel/rcu/tiny.c, kernel/rcu/core.c, etc. > > > > > > > > [ ... and we would certainly also break new ground by introducing a > > > > "torture.c" file, for the first time in Linux kernel history! ;-) ] > > > > > > > > But it's really your call, this is something you should only do if you are > > > > comfortable with it. > > > > > > IFF we're going to restructure rcu; can we save the CPP some work and do > > > away with rcu*_plugin.h ? > > > > OK, I'll bite... Where did you want to put the code instead? > > Just about here: > > kernel/rcutree.c:#include "rcutree_plugin.h" > > and save the bother of inclusion. I would be more likely to break rcutree_plugin.h into pieces (e.g., for preempt-rcu, RCU_FAST_NOHZ, NOCB, stall warnings, and so on than to merge it into rcutree.c. Thanx, Paul