* [PATCH 1/3] Doc: Fix missing whitespaces in RCU documentation.
2009-03-30 9:02 [PATCH 0/3] Trivial doc fixes for RCU (v3) Jesper Dangaard Brouer
@ 2009-03-30 9:02 ` Jesper Dangaard Brouer
2009-03-30 9:03 ` [PATCH 2/3] Doc: Fix wrong API example usage of call_rcu() Jesper Dangaard Brouer
` (2 subsequent siblings)
3 siblings, 0 replies; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-30 9:02 UTC (permalink / raw)
To: David S. Miller; +Cc: Paul E. McKenney, netdev
Trivial fix while reading through the RCU docs.
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
---
Documentation/RCU/rcu.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/RCU/rcu.txt b/Documentation/RCU/rcu.txt
index 95821a2..7aa2002 100644
--- a/Documentation/RCU/rcu.txt
+++ b/Documentation/RCU/rcu.txt
@@ -81,7 +81,7 @@ o I hear that RCU needs work in order to support realtime kernels?
This work is largely completed. Realtime-friendly RCU can be
enabled via the CONFIG_PREEMPT_RCU kernel configuration parameter.
However, work is in progress for enabling priority boosting of
- preempted RCU read-side critical sections.This is needed if you
+ preempted RCU read-side critical sections. This is needed if you
have CPU-bound realtime threads.
o Where can I find more information on RCU?
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH 2/3] Doc: Fix wrong API example usage of call_rcu().
2009-03-30 9:02 [PATCH 0/3] Trivial doc fixes for RCU (v3) Jesper Dangaard Brouer
2009-03-30 9:02 ` [PATCH 1/3] Doc: Fix missing whitespaces in RCU documentation Jesper Dangaard Brouer
@ 2009-03-30 9:03 ` Jesper Dangaard Brouer
2009-03-30 9:03 ` [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt Jesper Dangaard Brouer
2009-04-02 8:28 ` [PATCH 0/3] Trivial doc fixes for RCU (v3) David Miller
3 siblings, 0 replies; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-30 9:03 UTC (permalink / raw)
To: David S. Miller; +Cc: Paul E. McKenney, netdev
At some point the API of call_rcu() changed from three parameters
to two parameters, correct the documentation.
One confusing thing in RCU/listRCU.txt, which is NOT fixed in this patch,
is that no reason or explaination is given for using call_rcu() instead of
the normal synchronize_rcu() call.
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
---
Documentation/RCU/listRCU.txt | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/RCU/listRCU.txt b/Documentation/RCU/listRCU.txt
index 1fd1753..4349c14 100644
--- a/Documentation/RCU/listRCU.txt
+++ b/Documentation/RCU/listRCU.txt
@@ -118,7 +118,7 @@ Following are the RCU equivalents for these two functions:
list_for_each_entry(e, list, list) {
if (!audit_compare_rule(rule, &e->rule)) {
list_del_rcu(&e->list);
- call_rcu(&e->rcu, audit_free_rule, e);
+ call_rcu(&e->rcu, audit_free_rule);
return 0;
}
}
@@ -206,7 +206,7 @@ RCU ("read-copy update") its name. The RCU code is as follows:
ne->rule.action = newaction;
ne->rule.file_count = newfield_count;
list_replace_rcu(e, ne);
- call_rcu(&e->rcu, audit_free_rule, e);
+ call_rcu(&e->rcu, audit_free_rule);
return 0;
}
}
@@ -283,7 +283,7 @@ flag under the spinlock as follows:
list_del_rcu(&e->list);
e->deleted = 1;
spin_unlock(&e->lock);
- call_rcu(&e->rcu, audit_free_rule, e);
+ call_rcu(&e->rcu, audit_free_rule);
return 0;
}
}
^ permalink raw reply related [flat|nested] 14+ messages in thread* [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-30 9:02 [PATCH 0/3] Trivial doc fixes for RCU (v3) Jesper Dangaard Brouer
2009-03-30 9:02 ` [PATCH 1/3] Doc: Fix missing whitespaces in RCU documentation Jesper Dangaard Brouer
2009-03-30 9:03 ` [PATCH 2/3] Doc: Fix wrong API example usage of call_rcu() Jesper Dangaard Brouer
@ 2009-03-30 9:03 ` Jesper Dangaard Brouer
2009-03-30 16:59 ` Jarek Poplawski
2009-04-02 8:28 ` [PATCH 0/3] Trivial doc fixes for RCU (v3) David Miller
3 siblings, 1 reply; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-30 9:03 UTC (permalink / raw)
To: David S. Miller; +Cc: Paul E. McKenney, netdev
Trival spelling fixes in RCU/rculist_nulls.txt.
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
---
Documentation/RCU/rculist_nulls.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt
index 239f542..ba075b2 100644
--- a/Documentation/RCU/rculist_nulls.txt
+++ b/Documentation/RCU/rculist_nulls.txt
@@ -21,7 +21,7 @@ if (obj) {
/*
* Because a writer could delete object, and a writer could
* reuse these object before the RCU grace period, we
- * must check key after geting the reference on object
+ * must check key after getting the reference on object
*/
if (obj->key != key) { // not the object we expected
put_ref(obj);
@@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object
to another chain) checking the final 'nulls' value if
the lookup met the end of chain. If final 'nulls' value
is not the slot number, then we must restart the lookup at
-the begining. If the object was moved to same chain,
+the beginning. If the object was moved to same chain,
then the reader doesnt care : It might eventually
scan the list again without harm.
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-30 9:03 ` [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt Jesper Dangaard Brouer
@ 2009-03-30 16:59 ` Jarek Poplawski
2009-03-30 19:59 ` Jesper Dangaard Brouer
0 siblings, 1 reply; 14+ messages in thread
From: Jarek Poplawski @ 2009-03-30 16:59 UTC (permalink / raw)
To: Jesper Dangaard Brouer; +Cc: David S. Miller, Paul E. McKenney, netdev
Jesper Dangaard Brouer wrote, On 03/30/2009 11:03 AM:
> Trival spelling fixes in RCU/rculist_nulls.txt.
>
> Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
> ---
>
> Documentation/RCU/rculist_nulls.txt | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt
> index 239f542..ba075b2 100644
> --- a/Documentation/RCU/rculist_nulls.txt
> +++ b/Documentation/RCU/rculist_nulls.txt
> @@ -21,7 +21,7 @@ if (obj) {
> /*
> * Because a writer could delete object, and a writer could
> * reuse these object before the RCU grace period, we
> - * must check key after geting the reference on object
> + * must check key after getting the reference on object
> */
> if (obj->key != key) { // not the object we expected
> put_ref(obj);
> @@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object
> to another chain) checking the final 'nulls' value if
> the lookup met the end of chain. If final 'nulls' value
> is not the slot number, then we must restart the lookup at
> -the begining. If the object was moved to same chain,
> +the beginning. If the object was moved to same chain,
"by way":)
+the beginning. If the object was moved to the same chain,
Jarek P.
> then the reader doesnt care : It might eventually
> scan the list again without harm.
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-30 16:59 ` Jarek Poplawski
@ 2009-03-30 19:59 ` Jesper Dangaard Brouer
2009-03-30 20:10 ` Eric Dumazet
2009-03-30 20:11 ` [PATCH v2 " Jesper Dangaard Brouer
0 siblings, 2 replies; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-30 19:59 UTC (permalink / raw)
To: Jarek Poplawski
Cc: Jesper Dangaard Brouer, David S. Miller, Paul E. McKenney, netdev
On Mon, 30 Mar 2009, Jarek Poplawski wrote:
> Jesper Dangaard Brouer wrote, On 03/30/2009 11:03 AM:
>
>> Trival spelling fixes in RCU/rculist_nulls.txt.
>>
>> the lookup met the end of chain. If final 'nulls' value
>> is not the slot number, then we must restart the lookup at
>> -the begining. If the object was moved to same chain,
>> +the beginning. If the object was moved to same chain,
>
>
> "by way":)
> +the beginning. If the object was moved to the same chain,
*LOL* this was suppose to be a simple trivial insignificant fix, but you
are right there is _also_ missing a "the" in the sentence ;-).
Cheers,
Jesper Brouer
--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-30 19:59 ` Jesper Dangaard Brouer
@ 2009-03-30 20:10 ` Eric Dumazet
2009-03-30 20:11 ` [PATCH v2 " Jesper Dangaard Brouer
1 sibling, 0 replies; 14+ messages in thread
From: Eric Dumazet @ 2009-03-30 20:10 UTC (permalink / raw)
To: Jesper Dangaard Brouer
Cc: Jarek Poplawski, Jesper Dangaard Brouer, David S. Miller,
Paul E. McKenney, netdev
Jesper Dangaard Brouer a écrit :
> On Mon, 30 Mar 2009, Jarek Poplawski wrote:
>
>> Jesper Dangaard Brouer wrote, On 03/30/2009 11:03 AM:
>>
>>> Trival spelling fixes in RCU/rculist_nulls.txt.
>>>
>>> the lookup met the end of chain. If final 'nulls' value
>>> is not the slot number, then we must restart the lookup at
>>> -the begining. If the object was moved to same chain,
>>> +the beginning. If the object was moved to same chain,
>>
>>
>> "by way":)
>> +the beginning. If the object was moved to the same chain,
>
> *LOL* this was suppose to be a simple trivial insignificant fix, but you
> are right there is _also_ missing a "the" in the sentence ;-).
>
RCU is complex, and english too, at last for me ...
I am very surprised you found so few errors in this file, that mixes these two parts :)
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH v2 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-30 19:59 ` Jesper Dangaard Brouer
2009-03-30 20:10 ` Eric Dumazet
@ 2009-03-30 20:11 ` Jesper Dangaard Brouer
2009-03-31 10:54 ` Jarek Poplawski
1 sibling, 1 reply; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-30 20:11 UTC (permalink / raw)
To: Jarek Poplawski
Cc: Jesper Dangaard Brouer, David S. Miller, Paul E. McKenney, netdev
Trival spelling fixes in RCU/rculist_nulls.txt.
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
---
Documentation/RCU/rculist_nulls.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt
index 239f542..6389dec 100644
--- a/Documentation/RCU/rculist_nulls.txt
+++ b/Documentation/RCU/rculist_nulls.txt
@@ -21,7 +21,7 @@ if (obj) {
/*
* Because a writer could delete object, and a writer could
* reuse these object before the RCU grace period, we
- * must check key after geting the reference on object
+ * must check key after getting the reference on object
*/
if (obj->key != key) { // not the object we expected
put_ref(obj);
@@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object
to another chain) checking the final 'nulls' value if
the lookup met the end of chain. If final 'nulls' value
is not the slot number, then we must restart the lookup at
-the begining. If the object was moved to same chain,
+the beginning. If the object was moved to the same chain,
then the reader doesnt care : It might eventually
scan the list again without harm.
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH v2 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-30 20:11 ` [PATCH v2 " Jesper Dangaard Brouer
@ 2009-03-31 10:54 ` Jarek Poplawski
2009-03-31 19:17 ` Jesper Dangaard Brouer
0 siblings, 1 reply; 14+ messages in thread
From: Jarek Poplawski @ 2009-03-31 10:54 UTC (permalink / raw)
To: Jesper Dangaard Brouer
Cc: Jesper Dangaard Brouer, David S. Miller, Paul E. McKenney, netdev
On Mon, Mar 30, 2009 at 10:11:47PM +0200, Jesper Dangaard Brouer wrote:
>
> Trival spelling fixes in RCU/rculist_nulls.txt.
>
> Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
> Reviewed-by: Jarek Poplawski <jarkao2@gmail.com>
Hmm... still "reviewing", and maybe it's only me, but can't apply...
(v1 works OK.)
Jarek P.
> Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
> ---
>
> Documentation/RCU/rculist_nulls.txt | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>
> diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt
> index 239f542..6389dec 100644
> --- a/Documentation/RCU/rculist_nulls.txt
> +++ b/Documentation/RCU/rculist_nulls.txt
> @@ -21,7 +21,7 @@ if (obj) {
> /*
> * Because a writer could delete object, and a writer could
> * reuse these object before the RCU grace period, we
> - * must check key after geting the reference on object
> + * must check key after getting the reference on object
> */
> if (obj->key != key) { // not the object we expected
> put_ref(obj);
> @@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object
> to another chain) checking the final 'nulls' value if
> the lookup met the end of chain. If final 'nulls' value
> is not the slot number, then we must restart the lookup at
> -the begining. If the object was moved to same chain,
> +the beginning. If the object was moved to the same chain,
> then the reader doesnt care : It might eventually
> scan the list again without harm.
>
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v2 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-31 10:54 ` Jarek Poplawski
@ 2009-03-31 19:17 ` Jesper Dangaard Brouer
2009-03-31 19:36 ` Jesper Dangaard Brouer
0 siblings, 1 reply; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-31 19:17 UTC (permalink / raw)
To: Jarek Poplawski; +Cc: Jesper Dangaard Brouer, David S. Miller, netdev
On Tue, 31 Mar 2009, Jarek Poplawski wrote:
> On Mon, Mar 30, 2009 at 10:11:47PM +0200, Jesper Dangaard Brouer wrote:
>>
>> Trival spelling fixes in RCU/rculist_nulls.txt.
>>
>> Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
>> Reviewed-by: Jarek Poplawski <jarkao2@gmail.com>
>
> Hmm... still "reviewing", and maybe it's only me, but can't apply...
> (v1 works OK.)
Sorry, it because my email program "pine" insists on line wrapping. I
have tried to adjust the preferences ("newmail-window-width" and
"composer-wrap-column") but it still insists... grrr
It looks like that patchwork corrected the line wrappings
(http://patchwork.ozlabs.org/patch/25337/) but if I download the patch via
patchwork, it also fails because a space has been added in front of all
lines, hmmm...
Okay, I'll try to repost using another email program (as reply to this
message so patchwork will pick it up). It amazing how much time we use on
these nitpicks ;-)
Hilsen
Jesper Brouer
--
-------------------------------------------------------------------
MSc. Master of Computer Science
Dept. of Computer Science, University of Copenhagen
Author of http://www.adsl-optimizer.dk
-------------------------------------------------------------------
^ permalink raw reply [flat|nested] 14+ messages in thread* Re: [PATCH v2 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-31 19:17 ` Jesper Dangaard Brouer
@ 2009-03-31 19:36 ` Jesper Dangaard Brouer
2009-04-01 5:34 ` Jarek Poplawski
0 siblings, 1 reply; 14+ messages in thread
From: Jesper Dangaard Brouer @ 2009-03-31 19:36 UTC (permalink / raw)
To: Jesper Dangaard Brouer; +Cc: Jarek Poplawski, David S. Miller, netdev
Doc: Fix spelling in RCU/rculist_nulls.txt.
Trival spelling fixes in RCU/rculist_nulls.txt.
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
---
Documentation/RCU/rculist_nulls.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt
index 239f542..6389dec 100644
--- a/Documentation/RCU/rculist_nulls.txt
+++ b/Documentation/RCU/rculist_nulls.txt
@@ -21,7 +21,7 @@ if (obj) {
/*
* Because a writer could delete object, and a writer could
* reuse these object before the RCU grace period, we
- * must check key after geting the reference on object
+ * must check key after getting the reference on object
*/
if (obj->key != key) { // not the object we expected
put_ref(obj);
@@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object
to another chain) checking the final 'nulls' value if
the lookup met the end of chain. If final 'nulls' value
is not the slot number, then we must restart the lookup at
-the begining. If the object was moved to same chain,
+the beginning. If the object was moved to the same chain,
then the reader doesnt care : It might eventually
scan the list again without harm.
^ permalink raw reply related [flat|nested] 14+ messages in thread* Re: [PATCH v2 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt.
2009-03-31 19:36 ` Jesper Dangaard Brouer
@ 2009-04-01 5:34 ` Jarek Poplawski
0 siblings, 0 replies; 14+ messages in thread
From: Jarek Poplawski @ 2009-04-01 5:34 UTC (permalink / raw)
To: Jesper Dangaard Brouer; +Cc: Jesper Dangaard Brouer, David S. Miller, netdev
On Tue, Mar 31, 2009 at 09:36:48PM +0200, Jesper Dangaard Brouer wrote:
> Doc: Fix spelling in RCU/rculist_nulls.txt.
>
> Trival spelling fixes in RCU/rculist_nulls.txt.
>
> Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
>
> Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
> ---
Tested-by: Jarek Poplawski <jarkao2@gmail.com;->
>
> Documentation/RCU/rculist_nulls.txt | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>
> diff --git a/Documentation/RCU/rculist_nulls.txt b/Documentation/RCU/rculist_nulls.txt
> index 239f542..6389dec 100644
> --- a/Documentation/RCU/rculist_nulls.txt
> +++ b/Documentation/RCU/rculist_nulls.txt
> @@ -21,7 +21,7 @@ if (obj) {
> /*
> * Because a writer could delete object, and a writer could
> * reuse these object before the RCU grace period, we
> - * must check key after geting the reference on object
> + * must check key after getting the reference on object
> */
> if (obj->key != key) { // not the object we expected
> put_ref(obj);
> @@ -117,7 +117,7 @@ a race (some writer did a delete and/or a move of an object
> to another chain) checking the final 'nulls' value if
> the lookup met the end of chain. If final 'nulls' value
> is not the slot number, then we must restart the lookup at
> -the begining. If the object was moved to same chain,
> +the beginning. If the object was moved to the same chain,
> then the reader doesnt care : It might eventually
> scan the list again without harm.
>
>
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH 0/3] Trivial doc fixes for RCU (v3)
2009-03-30 9:02 [PATCH 0/3] Trivial doc fixes for RCU (v3) Jesper Dangaard Brouer
` (2 preceding siblings ...)
2009-03-30 9:03 ` [PATCH 3/3] Doc: Fix spelling in RCU/rculist_nulls.txt Jesper Dangaard Brouer
@ 2009-04-02 8:28 ` David Miller
3 siblings, 0 replies; 14+ messages in thread
From: David Miller @ 2009-04-02 8:28 UTC (permalink / raw)
To: hawk; +Cc: paulmck, netdev
From: Jesper Dangaard Brouer <hawk@comx.dk>
Date: Mon, 30 Mar 2009 11:02:51 +0200
> Trivial RCU documentation fixes.
>
> It seems that majordomo eate my mail to the netdev list, as stgit
> didn't quote the email adresses correctly. As names which have
> characters such as "." in them must be fully surrounded by
> double quotes when they appear in email headers. For this
> to work with .gitconfig mail aliases the quotes needs to
> be escaped.
>
> So let hope the third time is the last, for these trivial patches.
I'll toss these into a GIT tree and ask Linus to pull them.
^ permalink raw reply [flat|nested] 14+ messages in thread