From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function Date: Thu, 28 Apr 2011 13:11:17 +0300 Message-ID: <20110428101117.GP2265@redhat.com> References: <1303984323-3203-1-git-send-email-gleb@redhat.com> <1303984323-3203-2-git-send-email-gleb@redhat.com> <4DB93AE0.4050303@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, paulmck@linux.vnet.ibm.com, mtosatti@redhat.com, kvm@vger.kernel.org To: Avi Kivity Return-path: Content-Disposition: inline In-Reply-To: <4DB93AE0.4050303@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Thu, Apr 28, 2011 at 01:01:04PM +0300, Avi Kivity wrote: > On 04/28/2011 12:52 PM, Gleb Natapov wrote: > >Signed-off-by: Gleb Natapov > >@@ -93,11 +93,7 @@ static inline int rcu_needs_cpu(int cpu) > > > > #endif /* #else #ifdef CONFIG_TINY_RCU */ > > > >-static inline void rcu_note_context_switch(int cpu) > >-{ > >- rcu_sched_qs(cpu); > >- rcu_preempt_note_context_switch(); > >-} > >+extern void rcu_note_context_switch(int cpu); > > > > Why are you uninlining this function? Why not export the two > functions it calls instead? > To keep exported interface uniformal between both rcu implementations. I do not think that rcu_note_context_switch() is inlined for performance reason since two functions it calls are quite big in rcutiny implementation. Paul what do you think? -- Gleb.