Skip to contentSkip to conversation

rcu: fix spelling mistakes

PATCH In review Zhen Lei 2 participants 3 messages May 24, 2021 RCU

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

cover rcu: fix spelling mistakes

The files being checked:
kernel/rcu/
include/linux/rcu*.h

Zhen Lei (1):
rcu: fix spelling mistakes

 kernel/rcu/tasks.h | 6 +++---
 kernel/rcu/tree.c  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 rcu: fix spelling mistakes

Fix some spelling mistakes in comments:
data-strcuture ==> data-structure
responsibilty ==> responsibility
interrrupts ==> interrupts

---
 kernel/rcu/tasks.h | 6 +++---
 kernel/rcu/tree.c  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
kernel/rcu/tasks.h +3 -3
index 350ebf5051f9..311aa7b14830 100644
@@ -504,7 +504,7 @@ DEFINE_RCU_TASKS(rcu_tasks, rcu_tasks_wait_gp, call_rcu_tasks, "RCU Tasks");
  * or transition to usermode execution.  As such, there are no read-side
  * primitives analogous to rcu_read_lock() and rcu_read_unlock() because
  * this primitive is intended to determine that all tasks have passed
- * through a safe state, not so much for data-strcuture synchronization.
+ * through a safe state, not so much for data-structure synchronization.
  *
  * See the description of call_rcu() for more detailed information on
  * memory ordering guarantees.
@@ -637,7 +637,7 @@ DEFINE_RCU_TASKS(rcu_tasks_rude, rcu_tasks_rude_wait_gp, call_rcu_tasks_rude,
  * there are no read-side primitives analogous to rcu_read_lock() and
  * rcu_read_unlock() because this primitive is intended to determine
  * that all tasks have passed through a safe state, not so much for
- * data-strcuture synchronization.
+ * data-structure synchronization.
  *
  * See the description of call_rcu() for more detailed information on
  * memory ordering guarantees.
@@ -1163,7 +1163,7 @@ static void exit_tasks_rcu_finish_trace(struct task_struct *t)
  * there are no read-side primitives analogous to rcu_read_lock() and
  * rcu_read_unlock() because this primitive is intended to determine
  * that all tasks have passed through a safe state, not so much for
- * data-strcuture synchronization.
+ * data-structure synchronization.
  *
  * See the description of call_rcu() for more detailed information on
  * memory ordering guarantees.
kernel/rcu/tree.c +2 -2
index 8e78b2430c16..c32891763955 100644
@@ -3848,7 +3848,7 @@ EXPORT_SYMBOL_GPL(start_poll_synchronize_rcu);
  *
  * If a full RCU grace period has elapsed since the earlier call from
  * which oldstate was obtained, return @true, otherwise return @false.
- * If @false is returned, it is the caller's responsibilty to invoke this
+ * If @false is returned, it is the caller's responsibility to invoke this
  * function later on until it does return @true.  Alternatively, the caller
  * can explicitly wait for a grace period, for example, by passing @oldstate
  * to cond_synchronize_rcu() or by directly invoking synchronize_rcu().
@@ -4094,7 +4094,7 @@ EXPORT_SYMBOL_GPL(rcu_barrier);
 /*
  * Propagate ->qsinitmask bits up the rcu_node tree to account for the
  * first CPU in a given leaf rcu_node structure coming online.  The caller
- * must hold the corresponding leaf rcu_node ->lock with interrrupts
+ * must hold the corresponding leaf rcu_node ->lock with interrupts
  * disabled.
  */
 static void rcu_init_new_rnp(struct rcu_node *rnp_leaf)
Signature · 1 line
2.25.1
maintainer
#2 lore raw
Quoted 6 lines · Zhen Lei

Fix some spelling mistakes in comments:
data-strcuture ==> data-structure
responsibilty ==> responsibility
interrrupts ==> interrupts

Good eyes, but...

Quoted 28 lines
---
 kernel/rcu/tasks.h | 6 +++---
 kernel/rcu/tree.c  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
kernel/rcu/tasks.h +2 -2
index 350ebf5051f9..311aa7b14830 100644
@@ -504,7 +504,7 @@ DEFINE_RCU_TASKS(rcu_tasks, rcu_tasks_wait_gp, call_rcu_tasks, "RCU Tasks");
  * or transition to usermode execution.  As such, there are no read-side
  * primitives analogous to rcu_read_lock() and rcu_read_unlock() because
  * this primitive is intended to determine that all tasks have passed
- * through a safe state, not so much for data-strcuture synchronization.
+ * through a safe state, not so much for data-structure synchronization.
  *
  * See the description of call_rcu() for more detailed information on
  * memory ordering guarantees.
@@ -637,7 +637,7 @@ DEFINE_RCU_TASKS(rcu_tasks_rude, rcu_tasks_rude_wait_gp, call_rcu_tasks_rude,
  * there are no read-side primitives analogous to rcu_read_lock() and
  * rcu_read_unlock() because this primitive is intended to determine
  * that all tasks have passed through a safe state, not so much for
- * data-strcuture synchronization.
+ * data-structure synchronization.
  *
  * See the description of call_rcu() for more detailed information on
  * memory ordering guarantees.

kernel/rcu/tasks.h static void exit_tasks_rcu_finish_trace(struct task_struct *t) · line 1169

Quoted 8 lines
kernel/rcu/tasks.h +1 -1
@@ -1163,7 +1163,7 @@ static void exit_tasks_rcu_finish_trace(struct task_struct *t)
  * there are no read-side primitives analogous to rcu_read_lock() and
  * rcu_read_unlock() because this primitive is intended to determine
  * that all tasks have passed through a safe state, not so much for
- * data-strcuture synchronization.
+ * data-structure synchronization.
  *
  * See the description of call_rcu() for more detailed information on
  * memory ordering guarantees.

...Ingo Molnar beat you to these.

See the following commit in the -rcu tree:

a616aec9aa14 ("rcu: Fix various typos in comments")

Quoted 14 lines
kernel/rcu/tree.c +1 -1
index 8e78b2430c16..c32891763955 100644
@@ -3848,7 +3848,7 @@ EXPORT_SYMBOL_GPL(start_poll_synchronize_rcu);
  *
  * If a full RCU grace period has elapsed since the earlier call from
  * which oldstate was obtained, return @true, otherwise return @false.
- * If @false is returned, it is the caller's responsibilty to invoke this
+ * If @false is returned, it is the caller's responsibility to invoke this
  * function later on until it does return @true.  Alternatively, the caller
  * can explicitly wait for a grace period, for example, by passing @oldstate
  * to cond_synchronize_rcu() or by directly invoking synchronize_rcu().

kernel/rcu/tree.c EXPORT_SYMBOL_GPL(rcu_barrier); · line 4100

Quoted 8 lines
kernel/rcu/tree.c +1 -1
@@ -4094,7 +4094,7 @@ EXPORT_SYMBOL_GPL(rcu_barrier);
 /*
  * Propagate ->qsinitmask bits up the rcu_node tree to account for the
  * first CPU in a given leaf rcu_node structure coming online.  The caller
- * must hold the corresponding leaf rcu_node ->lock with interrrupts
+ * must hold the corresponding leaf rcu_node ->lock with interrupts
  * disabled.
  */
 static void rcu_init_new_rnp(struct rcu_node *rnp_leaf)

And Ingo also beat you to both of these.

Nevertheless, thank you for sending the patch, and I wish you better luck in future patches.

Thanx, Paul