Re: [PATCH] rcu: Remove reduplicate check of cpu_online

2015-02-25 Thread Paul E. McKenney
On Wed, Feb 25, 2015 at 05:09:46PM +0800, Yao Dongdong wrote: > The calling function invoke_rcu_core will check it. > > Signed-off-by: Yao Dongdong Hmmm... That is a fastpath, but invoke_rcu_core() is visible to the compiler, which should inline anyway. I took this patch for 4.1, but updated

[PATCH] rcu: Remove reduplicate check of cpu_online

2015-02-25 Thread Yao Dongdong
The calling function invoke_rcu_core will check it. Signed-off-by: Yao Dongdong --- kernel/rcu/tree.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 48d640c..e5f9b7e 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@

Re: [PATCH] rcu: Remove reduplicate check of cpu_online

2015-02-25 Thread Paul E. McKenney
On Wed, Feb 25, 2015 at 05:09:46PM +0800, Yao Dongdong wrote: The calling function invoke_rcu_core will check it. Signed-off-by: Yao Dongdong yaodongd...@huawei.com Hmmm... That is a fastpath, but invoke_rcu_core() is visible to the compiler, which should inline anyway. I took this patch

[PATCH] rcu: Remove reduplicate check of cpu_online

2015-02-25 Thread Yao Dongdong
The calling function invoke_rcu_core will check it. Signed-off-by: Yao Dongdong yaodongd...@huawei.com --- kernel/rcu/tree.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index 48d640c..e5f9b7e 100644 --- a/kernel/rcu/tree.c +++