Skip to content

Commit a616aec

Browse files
ingomolnarpaulmckrcu
authored andcommitted
rcu: Fix various typos in comments
Fix ~12 single-word typos in RCU code comments. [ paulmck: Apply feedback from Randy Dunlap. ] Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent e75bcd4 commit a616aec

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

kernel/rcu/srcutree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,9 +777,9 @@ static bool srcu_might_be_idle(struct srcu_struct *ssp)
777777
spin_unlock_irqrestore_rcu_node(sdp, flags);
778778

779779
/*
780-
* No local callbacks, so probabalistically probe global state.
780+
* No local callbacks, so probabilistically probe global state.
781781
* Exact information would require acquiring locks, which would
782-
* kill scalability, hence the probabalistic nature of the probe.
782+
* kill scalability, hence the probabilistic nature of the probe.
783783
*/
784784

785785
/* First, see if enough time has passed since the last GP. */

kernel/rcu/sync.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ static void rcu_sync_func(struct rcu_head *rhp)
9494
rcu_sync_call(rsp);
9595
} else {
9696
/*
97-
* We're at least a GP after the last rcu_sync_exit(); eveybody
97+
* We're at least a GP after the last rcu_sync_exit(); everybody
9898
* will now have observed the write side critical section.
99-
* Let 'em rip!.
99+
* Let 'em rip!
100100
*/
101101
WRITE_ONCE(rsp->gp_state, GP_IDLE);
102102
}

kernel/rcu/tasks.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ typedef void (*postgp_func_t)(struct rcu_tasks *rtp);
2323
* struct rcu_tasks - Definition for a Tasks-RCU-like mechanism.
2424
* @cbs_head: Head of callback list.
2525
* @cbs_tail: Tail pointer for callback list.
26-
* @cbs_wq: Wait queue allowning new callback to get kthread's attention.
26+
* @cbs_wq: Wait queue allowing new callback to get kthread's attention.
2727
* @cbs_lock: Lock protecting callback list.
2828
* @kthread_ptr: This flavor's grace-period/callback-invocation kthread.
2929
* @gp_func: This flavor's grace-period-wait function.
@@ -504,7 +504,7 @@ DEFINE_RCU_TASKS(rcu_tasks, rcu_tasks_wait_gp, call_rcu_tasks, "RCU Tasks");
504504
* or transition to usermode execution. As such, there are no read-side
505505
* primitives analogous to rcu_read_lock() and rcu_read_unlock() because
506506
* this primitive is intended to determine that all tasks have passed
507-
* through a safe state, not so much for data-strcuture synchronization.
507+
* through a safe state, not so much for data-structure synchronization.
508508
*
509509
* See the description of call_rcu() for more detailed information on
510510
* memory ordering guarantees.
@@ -637,7 +637,7 @@ DEFINE_RCU_TASKS(rcu_tasks_rude, rcu_tasks_rude_wait_gp, call_rcu_tasks_rude,
637637
* there are no read-side primitives analogous to rcu_read_lock() and
638638
* rcu_read_unlock() because this primitive is intended to determine
639639
* that all tasks have passed through a safe state, not so much for
640-
* data-strcuture synchronization.
640+
* data-structure synchronization.
641641
*
642642
* See the description of call_rcu() for more detailed information on
643643
* memory ordering guarantees.
@@ -1163,7 +1163,7 @@ static void exit_tasks_rcu_finish_trace(struct task_struct *t)
11631163
* there are no read-side primitives analogous to rcu_read_lock() and
11641164
* rcu_read_unlock() because this primitive is intended to determine
11651165
* that all tasks have passed through a safe state, not so much for
1166-
* data-strcuture synchronization.
1166+
* data-structure synchronization.
11671167
*
11681168
* See the description of call_rcu() for more detailed information on
11691169
* memory ordering guarantees.

kernel/rcu/tree.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,7 @@ int rcutree_dead_cpu(unsigned int cpu)
24892489

24902490
/*
24912491
* Invoke any RCU callbacks that have made it to the end of their grace
2492-
* period. Thottle as specified by rdp->blimit.
2492+
* period. Throttle as specified by rdp->blimit.
24932493
*/
24942494
static void rcu_do_batch(struct rcu_data *rdp)
24952495
{
@@ -3848,7 +3848,7 @@ EXPORT_SYMBOL_GPL(start_poll_synchronize_rcu);
38483848
*
38493849
* If a full RCU grace period has elapsed since the earlier call from
38503850
* which oldstate was obtained, return @true, otherwise return @false.
3851-
* If @false is returned, it is the caller's responsibilty to invoke this
3851+
* If @false is returned, it is the caller's responsibility to invoke this
38523852
* function later on until it does return @true. Alternatively, the caller
38533853
* can explicitly wait for a grace period, for example, by passing @oldstate
38543854
* to cond_synchronize_rcu() or by directly invoking synchronize_rcu().
@@ -4094,7 +4094,7 @@ EXPORT_SYMBOL_GPL(rcu_barrier);
40944094
/*
40954095
* Propagate ->qsinitmask bits up the rcu_node tree to account for the
40964096
* first CPU in a given leaf rcu_node structure coming online. The caller
4097-
* must hold the corresponding leaf rcu_node ->lock with interrrupts
4097+
* must hold the corresponding leaf rcu_node ->lock with interrupts
40984098
* disabled.
40994099
*/
41004100
static void rcu_init_new_rnp(struct rcu_node *rnp_leaf)

kernel/rcu/tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ struct rcu_data {
153153
unsigned long gp_seq; /* Track rsp->gp_seq counter. */
154154
unsigned long gp_seq_needed; /* Track furthest future GP request. */
155155
union rcu_noqs cpu_no_qs; /* No QSes yet for this CPU. */
156-
bool core_needs_qs; /* Core waits for quiesc state. */
156+
bool core_needs_qs; /* Core waits for quiescent state. */
157157
bool beenonline; /* CPU online at least once. */
158158
bool gpwrap; /* Possible ->gp_seq wrap. */
159159
bool exp_deferred_qs; /* This CPU awaiting a deferred QS? */

kernel/rcu/tree_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ static void show_rcu_nocb_state(struct rcu_data *rdp)
28572857
waslocked = raw_spin_is_locked(&rdp->nocb_gp_lock);
28582858
wassleep = swait_active(&rdp->nocb_gp_wq);
28592859
if (!rdp->nocb_gp_sleep && !waslocked && !wassleep)
2860-
return; /* Nothing untowards. */
2860+
return; /* Nothing untoward. */
28612861

28622862
pr_info(" nocb GP activity on CB-only CPU!!! %c%c%c %c\n",
28632863
"lL"[waslocked],

tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static inline bool spin_trylock(spinlock_t *lock)
174174
}
175175

176176
struct completion {
177-
/* Hopefuly this won't overflow. */
177+
/* Hopefully this won't overflow. */
178178
unsigned int count;
179179
};
180180

0 commit comments

Comments
 (0)