Skip to contentSkip to conversation

linux-next: Signed-off-by missing for commit in the rcu tree

DISCUSSION Stephen Rothwell 4 participants 6 messages Nov 29, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Paul,

Commit

d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()")

is missing a Signed-off-by from its author.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 7 lines · Stephen Rothwell

Hi Paul,

Commit

d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()")

is missing a Signed-off-by from its author.

Good catch, Stephen!

Lihao, would you please get me you Signed-off-by? The patch is below.

Thanx, Paul

------------------------------------------------------------------------

commit d7e182c9c32480c1f579dd888ac50e88bfb39596

Author: Liang Lihao <[email protected]>
Date:   Wed Nov 22 19:00:55 2017 +0000

rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()

Since rcu_boot_init_percpu_data() is only called at boot time, there is no data race and spinlock is not needed.

kernel/rcu/tree.c +0 -4
index 69722817d6d6..0abe1db53d70 100644
@@ -3636,12 +3636,9 @@ static void rcu_init_new_rnp(struct rcu_node *rnp_leaf)
 static void __init
 rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
 {
-	unsigned long flags;
 	struct rcu_data *rdp = per_cpu_ptr(rsp->rda, cpu);
-	struct rcu_node *rnp = rcu_get_root(rsp);
 
 	/* Set up local state, ensuring consistent view of global state. */
-	raw_spin_lock_irqsave_rcu_node(rnp, flags);
 	rdp->grpmask = leaf_node_cpu_bit(rdp->mynode, cpu);
 	rdp->dynticks = &per_cpu(rcu_dynticks, cpu);
 	WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != 1);
@@ -3649,7 +3646,6 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
 	rdp->cpu = cpu;
 	rdp->rsp = rsp;
 	rcu_boot_init_nocb_percpu_data(rdp);
-	raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
 }
 
 /*
#2 lore raw

Hi Paul,

Many thanks,
Lihao.

Quoted 56 lines · Paul E. McKenney
Quoted 7 lines · Stephen Rothwell

Hi Paul,

Commit

d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()")

is missing a Signed-off-by from its author.

Good catch, Stephen!

Lihao, would you please get me you Signed-off-by? The patch is below.

Thanx, Paul

------------------------------------------------------------------------

commit d7e182c9c32480c1f579dd888ac50e88bfb39596

Author: Liang Lihao <[email protected]>
Date:   Wed Nov 22 19:00:55 2017 +0000

rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()

Since rcu_boot_init_percpu_data() is only called at boot time, there is no data race and spinlock is not needed.

kernel/rcu/tree.c +0 -4
index 69722817d6d6..0abe1db53d70 100644
@@ -3636,12 +3636,9 @@ static void rcu_init_new_rnp(struct rcu_node *rnp_leaf)
 static void __init
 rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
 {
-	unsigned long flags;
 	struct rcu_data *rdp = per_cpu_ptr(rsp->rda, cpu);
-	struct rcu_node *rnp = rcu_get_root(rsp);
 
 	/* Set up local state, ensuring consistent view of global state. */
-	raw_spin_lock_irqsave_rcu_node(rnp, flags);
 	rdp->grpmask = leaf_node_cpu_bit(rdp->mynode, cpu);
 	rdp->dynticks = &per_cpu(rcu_dynticks, cpu);
 	WARN_ON_ONCE(rdp->dynticks->dynticks_nesting != 1);
@@ -3649,7 +3646,6 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
 	rdp->cpu = cpu;
 	rdp->rsp = rsp;
 	rcu_boot_init_nocb_percpu_data(rdp);
-	raw_spin_unlock_irqrestore_rcu_node(rnp, flags);
 }
 
 /*
#3 lore raw

Hi Lihao,

Quoted 3 lines · Lihao Liang

Hi Paul,

...

Quoted 23 lines

Many thanks,
Lihao.

Quoted 18 lines · Paul E. McKenney
Quoted 7 lines · Stephen Rothwell

Hi Paul,

Commit

d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()")

is missing a Signed-off-by from its author.

Good catch, Stephen!

Lihao, would you please get me you Signed-off-by? The patch is below.

Thanx, Paul

------------------------------------------------------------------------

commit d7e182c9c32480c1f579dd888ac50e88bfb39596
Author: Liang Lihao <[email protected]>

So it's better to keep the author and Signed-off-by the same :)

Thanks
Hanjun

#4 lore raw
Quoted 26 lines · Hanjun Guo

Hi Lihao,

Quoted 3 lines · Lihao Liang

Hi Paul,

...

Quoted 17 lines

Many thanks,
Lihao.

Quoted 12 lines · Paul E. McKenney
Quoted 7 lines · Stephen Rothwell

Hi Paul,

Commit

d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()")

is missing a Signed-off-by from its author.

Good catch, Stephen!

Lihao, would you please get me you Signed-off-by? The patch is below.

Quoted 9 lines
Quoted 6 lines
Quoted 6 lines

Thanx, Paul

------------------------------------------------------------------------

commit d7e182c9c32480c1f579dd888ac50e88bfb39596
Author: Liang Lihao <[email protected]>

So it's better to keep the author and Signed-off-by the same :)

Sure. Paul and Stephen, please use

Many thanks,
Lihao.

Quoted 6 lines

Thanks
Hanjun

.

#5 lore raw
Quoted 36 lines · Lihao Liang
Quoted 33 lines · Hanjun Guo

Hi Lihao,

Quoted 3 lines · Lihao Liang

Hi Paul,

...

Quoted 23 lines

Many thanks,
Lihao.

Quoted 18 lines · Paul E. McKenney
Quoted 7 lines · Stephen Rothwell

Hi Paul,

Commit

d7e182c9c324 ("rcu: Remove unnecessary spinlock in rcu_boot_init_percpu_data()")

is missing a Signed-off-by from its author.

Good catch, Stephen!

Lihao, would you please get me you Signed-off-by? The patch is below.

Thanx, Paul

------------------------------------------------------------------------

commit d7e182c9c32480c1f579dd888ac50e88bfb39596
Author: Liang Lihao <[email protected]>

Quoted 6 lines
Quoted 2 lines

So it's better to keep the author and Signed-off-by the same :)

Sure. Paul and Stephen, please use

Updated, thank you both!

Thanx, Paul

Quoted 10 lines

Many thanks,
Lihao.

Quoted 6 lines

Thanks
Hanjun

.