rcu: Fix various typos in comments
PATCH 1/1 rcu: Fix various typos in comments
Hi Paul,
Was working on automation to make it a bit more straightforward to fix typos within comments (which we tend to reintroduce during development), and here are the ones it found in the RCU code.
Thanks,
Ingo
=========>
From: Ingo Molnar <[email protected]>
Date: Mon, 22 Mar 2021 23:57:26 +0100
Subject: [PATCH] rcu: Fix various typos in comments
Fix ~12 single-word typos in RCU code comments.
--- kernel/rcu/srcutree.c | 4 ++-- kernel/rcu/sync.c | 2 +- kernel/rcu/tasks.h | 8 ++++---- kernel/rcu/tree.c | 4 ++-- kernel/rcu/tree.h | 2 +- kernel/rcu/tree_plugin.h | 2 +- tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-)
kernel/rcu/srcutree.c +2 -2
@@ -777,9 +777,9 @@ static bool srcu_might_be_idle(struct srcu_struct *ssp)spin_unlock_irqrestore_rcu_node (sdp, flags);/* -* No local callbacks, so probabalistically probe global state. +* No local callbacks, so probabilistically probe global state. * Exact information would require acquiring locks, which would -* kill scalability, hence the probabalistic nature of the probe. +* kill scalability, hence the probabilistic nature of the probe. */ /* First, see if enough time has passed since the last GP. */
kernel/rcu/sync.c +1 -1
@@ -94,7 +94,7 @@ static void rcu_sync_func(struct rcu_head *rhp)rcu_sync_call (rsp); }else {/* -* We're at least a GP after the last rcu_sync_exit(); eveybody +* We're at least a GP after the last rcu_sync_exit(); everybody * will now have observed the write side critical section. * Let 'em rip!. */
kernel/rcu/tasks.h +4 -4
@@ -23,7 +23,7 @@ typedef void (*postgp_func_t)(struct rcu_tasks *rtp);* Definition for a Tasks-RCU-like mechanism. * @cbs_head: Head of callback list. * @cbs_tail: Tail pointer for callback list. -* @cbs_wq: Wait queue allowning new callback to get kthread's attention. +* @cbs_wq: Wait queue allowing new callback to get kthread's attention. * @cbs_lock: Lock protecting callback list. * @kthread_ptr: This flavor's grace-period/callback-invocation kthread. * @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");* 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.
@@ -1127,7 +1127,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
@@ -2490,7 +2490,7 @@ int rcutree_dead_cpu(unsigned int cpu)/* * Invoke any RCU callbacks that have made it to the end of their grace -* period. Thottle as specified by rdp->blimit. +* period. Throttle as specified by rdp->blimit. */ static void rcu_do_batch (struct rcu_data *rdp) {
@@ -4013,7 +4013,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)
kernel/rcu/tree.h +1 -1
@@ -153,7 +153,7 @@ struct rcu_data {unsigned long gp_seq;/* Track rsp->gp_seq counter. */ unsigned long gp_seq_needed;/* Track furthest future GP request. */ union rcu_noqs cpu_no_qs;/* No QSes yet for this CPU. */ -bool core_needs_qs;/* Core waits for quiesc state. */ +bool core_needs_qs;/* Core waits for quiescent state. */ bool beenonline;/* CPU online at least once. */ bool gpwrap;/* Possible ->gp_seq wrap. */ bool exp_deferred_qs;/* This CPU awaiting a deferred QS? */
kernel/rcu/tree_plugin.h +1 -1
@@ -2772,7 +2772,7 @@ static void show_rcu_nocb_state(struct rcu_data *rdp) wastimer =timer_pending (&rdp->nocb_bypass_timer); wassleep =swait_active (&rdp->nocb_gp_wq);if (!rdp->nocb_gp_sleep && !waslocked && !wastimer && !wassleep) -return ;/* Nothing untowards. */ +return ;/* Nothing untoward. */ pr_info(" nocb GP activity on CB-only CPU!!! %c%c%c%c %c\n", "lL"[waslocked],
tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h +1 -1
@@ -174,7 +174,7 @@ static inline bool spin_trylock(spinlock_t *lock) }struct completion { -/* Hopefuly this won't overflow. */ +/* Hopefully this won't overflow. */ unsigned int count; };
Quoted 36 lines · Ingo Molnar
Hi Paul,
Was working on automation to make it a bit more straightforward to fix typos within comments (which we tend to reintroduce during development), and here are the ones it found in the RCU code.
Thanks,
Ingo
=========>
From: Ingo Molnar <[email protected]>
Date: Mon, 22 Mar 2021 23:57:26 +0100
Subject: [PATCH] rcu: Fix various typos in commentsFix ~12 single-word typos in RCU code comments.
Signed-off-by Ingo Molnar <[email protected]>Cc Paul E. McKenney <[email protected]>--- kernel/rcu/srcutree.c | 4 ++-- kernel/rcu/sync.c | 2 +- kernel/rcu/tasks.h | 8 ++++---- kernel/rcu/tree.c | 4 ++-- kernel/rcu/tree.h | 2 +- kernel/rcu/tree_plugin.h | 2 +- tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-)kernel/rcu/sync.c +0
-0
kernel/rcu/sync.c static void rcu_sync_func(struct rcu_head *rhp) · line 99
Quoted 7 lines
kernel/rcu/sync.c +1
-1@@ -94,7 +94,7 @@ static void rcu_sync_func(struct rcu_head *rhp)rcu_sync_call (rsp); }else {/* -* We're at least a GP after the last rcu_sync_exit(); eveybody +* We're at least a GP after the last rcu_sync_exit(); everybody * will now have observed the write side critical section. * Let 'em rip!.
Drop the '.'.
kernel/rcu/sync.c static void rcu_sync_func(struct rcu_head *rhp) · line 100
Quoted 1 line
kernel/rcu/sync.c +0
-0*/
Otherwise LGTM. Thanks.
Signature · 1 line
~Randy
Quoted 47 lines · Randy Dunlap
Quoted 36 lines · Ingo Molnar
Hi Paul,
Was working on automation to make it a bit more straightforward to fix typos within comments (which we tend to reintroduce during development), and here are the ones it found in the RCU code.
Thanks,
Ingo
=========>
From: Ingo Molnar <[email protected]>
Date: Mon, 22 Mar 2021 23:57:26 +0100
Subject: [PATCH] rcu: Fix various typos in commentsFix ~12 single-word typos in RCU code comments.
Signed-off-by Ingo Molnar <[email protected]>Cc Paul E. McKenney <[email protected]>--- kernel/rcu/srcutree.c | 4 ++-- kernel/rcu/sync.c | 2 +- kernel/rcu/tasks.h | 8 ++++---- kernel/rcu/tree.c | 4 ++-- kernel/rcu/tree.h | 2 +- kernel/rcu/tree_plugin.h | 2 +- tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-)kernel/rcu/sync.c +0
-0kernel/rcu/sync.c static void rcu_sync_func(struct rcu_head *rhp) · line 99
Quoted 7 lines
kernel/rcu/sync.c +1
-1@@ -94,7 +94,7 @@ static void rcu_sync_func(struct rcu_head *rhp)rcu_sync_call (rsp); }else {/* -* We're at least a GP after the last rcu_sync_exit(); eveybody +* We're at least a GP after the last rcu_sync_exit(); everybody * will now have observed the write side critical section. * Let 'em rip!. Drop the '.'.
Quoted 4 lines
kernel/rcu/sync.c static void rcu_sync_func(struct rcu_head *rhp) · line 100
Quoted 1 line
kernel/rcu/sync.c +0
-0*/ Otherwise LGTM. Thanks.
Reviewed-by Randy Dunlap <[email protected]>
Applied, dropping the "." and adding the Reviewed-by.
Thank you both!
Thanx, Paul
Quoted 83 lines · Ingo Molnar
Hi Paul,
Was working on automation to make it a bit more straightforward to fix typos within comments (which we tend to reintroduce during development), and here are the ones it found in the RCU code.
Thanks,
Ingo
=========>
From: Ingo Molnar <[email protected]>
Date: Mon, 22 Mar 2021 23:57:26 +0100
Subject: [PATCH] rcu: Fix various typos in commentsFix ~12 single-word typos in RCU code comments.
Signed-off-by Ingo Molnar <[email protected]>Cc Paul E. McKenney <[email protected]>---
kernel/rcu/srcutree.c | 4 ++-- kernel/rcu/sync.c | 2 +- kernel/rcu/tasks.h | 8 ++++---- kernel/rcu/tree.c | 4 ++-- kernel/rcu/tree.h | 2 +- kernel/rcu/tree_plugin.h | 2 +- tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-)kernel/rcu/srcutree.c +2
-2@@ -777,9 +777,9 @@ static bool srcu_might_be_idle(struct srcu_struct *ssp)spin_unlock_irqrestore_rcu_node (sdp, flags);/* -* No local callbacks, so probabalistically probe global state. +* No local callbacks, so probabilistically probe global state. * Exact information would require acquiring locks, which would -* kill scalability, hence the probabalistic nature of the probe. +* kill scalability, hence the probabilistic nature of the probe. */ /* First, see if enough time has passed since the last GP. */ kernel/rcu/sync.c +1
-1@@ -94,7 +94,7 @@ static void rcu_sync_func(struct rcu_head *rhp)rcu_sync_call (rsp); }else {/* -* We're at least a GP after the last rcu_sync_exit(); eveybody +* We're at least a GP after the last rcu_sync_exit(); everybody * will now have observed the write side critical section. * Let 'em rip!. */ kernel/rcu/tasks.h +2
-2@@ -23,7 +23,7 @@ typedef void (*postgp_func_t)(struct rcu_tasks *rtp);* Definition for a Tasks-RCU-like mechanism. * @cbs_head: Head of callback list. * @cbs_tail: Tail pointer for callback list. -* @cbs_wq: Wait queue allowning new callback to get kthread's attention. +* @cbs_wq: Wait queue allowing new callback to get kthread's attention. * @cbs_lock: Lock protecting callback list. * @kthread_ptr: This flavor's grace-period/callback-invocation kthread. * @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");* 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.
kernel/rcu/tasks.h DEFINE_RCU_TASKS(rcu_tasks_rude, rcu_tasks_rude_wait_gp, call_rcu_tasks_rude, · line 641
Quoted 6 lines
kernel/rcu/tasks.h +1
-1@@ -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. *
The "hyphen" in the middle of the word "data structure" is required or keeping by convention or has some significance?
kernel/rcu/tasks.h static void exit_tasks_rcu_finish_trace(struct task_struct *t) · line 1131
Quoted 9 lines
kernel/rcu/tasks.h +1
-1* See the description of call_rcu() for more detailed information on * memory ordering guarantees. @@ -1127,7 +1127,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. *
Same like above.
Quoted 63 lines
kernel/rcu/tasks.h +0
-0* See the description of call_rcu() for more detailed information on * memory ordering guarantees. kernel/rcu/tree.c +2
-2@@ -2490,7 +2490,7 @@ int rcutree_dead_cpu(unsigned int cpu)/* * Invoke any RCU callbacks that have made it to the end of their grace -* period. Thottle as specified by rdp->blimit. +* period. Throttle as specified by rdp->blimit. */ static void rcu_do_batch (struct rcu_data *rdp) {@@ -4013,7 +4013,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)kernel/rcu/tree.h +1
-1@@ -153,7 +153,7 @@ struct rcu_data {unsigned long gp_seq;/* Track rsp->gp_seq counter. */ unsigned long gp_seq_needed;/* Track furthest future GP request. */ union rcu_noqs cpu_no_qs;/* No QSes yet for this CPU. */ -bool core_needs_qs;/* Core waits for quiesc state. */ +bool core_needs_qs;/* Core waits for quiescent state. */ bool beenonline;/* CPU online at least once. */ bool gpwrap;/* Possible ->gp_seq wrap. */ bool exp_deferred_qs;/* This CPU awaiting a deferred QS? */ kernel/rcu/tree_plugin.h +1
-1@@ -2772,7 +2772,7 @@ static void show_rcu_nocb_state(struct rcu_data *rdp) wastimer =timer_pending (&rdp->nocb_bypass_timer); wassleep =swait_active (&rdp->nocb_gp_wq);if (!rdp->nocb_gp_sleep && !waslocked && !wastimer && !wassleep) -return ;/* Nothing untowards. */ +return ;/* Nothing untoward. */ pr_info(" nocb GP activity on CB-only CPU!!! %c%c%c%c %c\n", "lL"[waslocked],tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h +1
-1@@ -174,7 +174,7 @@ static inline bool spin_trylock(spinlock_t *lock) }struct completion { -/* Hopefuly this won't overflow. */ +/* Hopefully this won't overflow. */ unsigned int count; };
Paul E. McKenney
maintainerQuoted 85 lines · Bhaskar Chowdhury
Quoted 84 lines · Ingo Molnar
Hi Paul,
Was working on automation to make it a bit more straightforward to fix typos within comments (which we tend to reintroduce during development), and here are the ones it found in the RCU code.
Thanks,
Ingo
=========>
From: Ingo Molnar <[email protected]>
Date: Mon, 22 Mar 2021 23:57:26 +0100
Subject: [PATCH] rcu: Fix various typos in commentsFix ~12 single-word typos in RCU code comments.
Signed-off-by Ingo Molnar <[email protected]>Cc Paul E. McKenney <[email protected]>---
kernel/rcu/srcutree.c | 4 ++-- kernel/rcu/sync.c | 2 +- kernel/rcu/tasks.h | 8 ++++---- kernel/rcu/tree.c | 4 ++-- kernel/rcu/tree.h | 2 +- kernel/rcu/tree_plugin.h | 2 +- tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-)kernel/rcu/srcutree.c +2
-2@@ -777,9 +777,9 @@ static bool srcu_might_be_idle(struct srcu_struct *ssp)spin_unlock_irqrestore_rcu_node (sdp, flags);/* -* No local callbacks, so probabalistically probe global state. +* No local callbacks, so probabilistically probe global state. * Exact information would require acquiring locks, which would -* kill scalability, hence the probabalistic nature of the probe. +* kill scalability, hence the probabilistic nature of the probe. */ /* First, see if enough time has passed since the last GP. */ kernel/rcu/sync.c +1
-1@@ -94,7 +94,7 @@ static void rcu_sync_func(struct rcu_head *rhp)rcu_sync_call (rsp); }else {/* -* We're at least a GP after the last rcu_sync_exit(); eveybody +* We're at least a GP after the last rcu_sync_exit(); everybody * will now have observed the write side critical section. * Let 'em rip!. */ kernel/rcu/tasks.h +2
-2@@ -23,7 +23,7 @@ typedef void (*postgp_func_t)(struct rcu_tasks *rtp);* Definition for a Tasks-RCU-like mechanism. * @cbs_head: Head of callback list. * @cbs_tail: Tail pointer for callback list. -* @cbs_wq: Wait queue allowning new callback to get kthread's attention. +* @cbs_wq: Wait queue allowing new callback to get kthread's attention. * @cbs_lock: Lock protecting callback list. * @kthread_ptr: This flavor's grace-period/callback-invocation kthread. * @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");* 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
Quoted 8 lines
kernel/rcu/tasks.h DEFINE_RCU_TASKS(rcu_tasks_rude, rcu_tasks_rude_wait_gp, call_rcu_tasks_rude, · line 641
Quoted 5 lines
kernel/rcu/tasks.h +1
-1* 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. * The "hyphen" in the middle of the word "data structure" is required or keeping by convention or has some significance?
Yes, this is one of many peculiarities of English, and an optional one at that. English is not a block-structured language, so grouping can be ambiguous. Is is "(data structure) synchronization" or is it instead "data (structure synchronization)"? The default is the latter, and the hyphen indicates the former. In this case, the former is intended, hence the hyphen.
Quoted 10 lines
kernel/rcu/tasks.h static void exit_tasks_rcu_finish_trace(struct task_struct *t) · line 1131
Quoted 9 lines
kernel/rcu/tasks.h +1
-1* See the description of call_rcu() for more detailed information on * memory ordering guarantees. @@ -1127,7 +1127,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. * Same like above.
Ditto!
Thanx, Paul
Quoted 63 lines
Quoted 63 lines
kernel/rcu/tasks.h +0
-0* See the description of call_rcu() for more detailed information on * memory ordering guarantees. kernel/rcu/tree.c +2
-2@@ -2490,7 +2490,7 @@ int rcutree_dead_cpu(unsigned int cpu)/* * Invoke any RCU callbacks that have made it to the end of their grace -* period. Thottle as specified by rdp->blimit. +* period. Throttle as specified by rdp->blimit. */ static void rcu_do_batch (struct rcu_data *rdp) {@@ -4013,7 +4013,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)kernel/rcu/tree.h +1
-1@@ -153,7 +153,7 @@ struct rcu_data {unsigned long gp_seq;/* Track rsp->gp_seq counter. */ unsigned long gp_seq_needed;/* Track furthest future GP request. */ union rcu_noqs cpu_no_qs;/* No QSes yet for this CPU. */ -bool core_needs_qs;/* Core waits for quiesc state. */ +bool core_needs_qs;/* Core waits for quiescent state. */ bool beenonline;/* CPU online at least once. */ bool gpwrap;/* Possible ->gp_seq wrap. */ bool exp_deferred_qs;/* This CPU awaiting a deferred QS? */ kernel/rcu/tree_plugin.h +1
-1@@ -2772,7 +2772,7 @@ static void show_rcu_nocb_state(struct rcu_data *rdp) wastimer =timer_pending (&rdp->nocb_bypass_timer); wassleep =swait_active (&rdp->nocb_gp_wq);if (!rdp->nocb_gp_sleep && !waslocked && !wastimer && !wassleep) -return ;/* Nothing untowards. */ +return ;/* Nothing untoward. */ pr_info(" nocb GP activity on CB-only CPU!!! %c%c%c%c %c\n", "lL"[waslocked],tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/locks.h +1
-1@@ -174,7 +174,7 @@ static inline bool spin_trylock(spinlock_t *lock) }struct completion { -/* Hopefuly this won't overflow. */ +/* Hopefully this won't overflow. */ unsigned int count; };
Quoted 10 lines · Paul E. McKenney
Quoted 9 lines
Quoted 6 lines
* 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.
*The "hyphen" in the middle of the word "data structure" is required or keeping by convention or has some significance?
Quoted 6 lines
Yes, this is one of many peculiarities of English, and an optional one at that. English is not a block-structured language, so grouping can be ambiguous. Is is "(data structure) synchronization" or is it instead "data (structure synchronization)"? The default is the latter, and the hyphen indicates the former. In this case, the former is intended, hence the hyphen.
The other point is that there are a *lot* of hyphen variations in the kernel, and unless the primary author or maintainer is iterating the text would be insane to categorize them as 'typos' and create churn to 'fix' them...
'data-structure' or 'datastructure' are both perfectly readable, just like 'fast-path' or 'fastpath', 'cache-miss' or 'cachemiss' and a million other examples.
Thanks,
Ingo
Paul E. McKenney
maintainerQuoted 20 lines · Ingo Molnar
Quoted 10 lines · Paul E. McKenney
Quoted 9 lines
Quoted 6 lines
* 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.
*The "hyphen" in the middle of the word "data structure" is required or keeping by convention or has some significance?
Quoted 6 lines
Yes, this is one of many peculiarities of English, and an optional one at that. English is not a block-structured language, so grouping can be ambiguous. Is is "(data structure) synchronization" or is it instead "data (structure synchronization)"? The default is the latter, and the hyphen indicates the former. In this case, the former is intended, hence the hyphen.
Quoted 8 lines
The other point is that there are a *lot* of hyphen variations in the kernel, and unless the primary author or maintainer is iterating the text would be insane to categorize them as 'typos' and create churn to 'fix' them...
'data-structure' or 'datastructure' are both perfectly readable, just like 'fast-path' or 'fastpath', 'cache-miss' or 'cachemiss' and a million other examples.
Agreed. Plus even though "data structure initialization" would look funny to me, I would know what was meant. And even automated systems that fix typos have some chance of creating other typos, as I have recently had considerably experience with. ;-)
Thanx, Paul