together: Fix the description of state traversal
PATCH 1/1 together: Fix the description of state traversal
There seem to be some issues with the description of state transitions. This patch fixes that.
--- together/applyrcu.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
together/applyrcu.tex +4 -3
@@ -676,11 +676,12 @@ The normal path through this state machine traverses the states CLOSED, OPEN, CLOSING (with an invocation of \co{call_rcu()}), and back to CLOSED once the callback has been invoked. If \co{open()} is invoked before the grace period completes, the -state machine traverses the cycle OPEN, CLOSING (with an invocation -of \co{call_rcu()}), and back to CLOSED once the callback has been invoked. +state machine traverses the cycle OPEN, CLOSING (with +an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +callback has been invoked. If \co{open()} and then \co{close()} are invoked before the grace period completes, the state machine traverses the cycle OPEN, CLOSING (with -an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +an invocation of \co{call_rcu()}), REOPENING, RECLOSING, and back to CLOSING once the callback has been invoked. Given an indefinite alternating sequence of \co{close()} and \co{open()}
Signature · 1 line
2.34.1
Quoted 16 lines · Alan Huang
There seem to be some issues with the description of state transitions. This patch fixes that.
Signed-off-by Alan Huang <[email protected]>--- together/applyrcu.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)together/applyrcu.tex +0
-0@@ -676,11 +676,12 @@ The normal path through this state machine traverses the states CLOSED, OPEN, CLOSING (with an invocation of \co{call_rcu()}), and back to CLOSED once the callback has been invoked. If \co{open()} is invoked before the grace period completes, the
together/applyrcu.tex The normal path through this state machine traverses the states CLOSED, · line 685
Quoted 10 lines
together/applyrcu.tex +4
-3-state machine traverses the cycle OPEN, CLOSING (with an invocation -of \co{call_rcu()}), and back to CLOSED once the callback has been invoked. +state machine traverses the cycle OPEN, CLOSING (with +an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +callback has been invoked. If \co{open()} and then \co{close()} are invoked before the grace period completes, the state machine traverses the cycle OPEN, CLOSING (with -an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +an invocation of \co{call_rcu()}), REOPENING, RECLOSING, and back to CLOSING once the callback has been invoked.
I took this patch (thank you!), but wonder if we should describe the additional callback and additional transition to CLOSED, both here and below. Thoughts?
Thanx, Paul
Quoted 4 lines
together/applyrcu.tex +0
-0Given an indefinite alternating sequence of \co{close()} and \co{open()}Signature · 1 line
2.34.1
Quoted 26 lines
2023年5月30日 08:40,Paul E. McKenney <[email protected]> 写道:
Quoted 22 lines · Alan Huang
There seem to be some issues with the description of state transitions. This patch fixes that.
Signed-off-by Alan Huang <[email protected]>---
together/applyrcu.tex | 7 ++++---1 file changed, 4 insertions(+), 3 deletions(-)together/applyrcu.tex +0
-0@@ -676,11 +676,12 @@ The normal path through this state machine traverses the states CLOSED,OPEN, CLOSING (with an invocation of \co{call_rcu()}), and back to CLOSED once the callback has been invoked.
If \co{open()} is invoked before the grace period completes, thetogether/applyrcu.tex +3
-2-state machine traverses the cycle OPEN, CLOSING (with an invocation -of \co{call_rcu()}), and back to CLOSED once the callback has been invoked. +state machine traverses the cycle OPEN, CLOSING (with +an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +callback has been invoked.If \co{open()} and then \co{close()} are invoked before the grace period
Quoted 8 lines
Quoted 4 lines
completes, the state machine traverses the cycle OPEN, CLOSING (with
together/applyrcu.tex +1
-1-an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +an invocation of \co{call_rcu()}), REOPENING, RECLOSING, and back to CLOSING once thecallback has been invoked.
I took this patch (thank you!), but wonder if we should describe the additional callback and additional transition to CLOSED, both here and below. Thoughts?
That would be more accurate. But the transition to CLOSED has already been described at the beginning of this paragraph. And omitting this description can encourage readers to engage in critical thinking and draw their own conclusions.
But others may prefer more accurate explanations :)
So, both descriptions work for me.
Thanks,
Alan
Quoted 7 lines
Thanx, Paul
Quoted 4 lines
Given an indefinite alternating sequence of \co{close()} and \co{open()}
Signature · 1 line
2.34.1
Quoted 35 lines · Alan Huang
Quoted 26 lines
2023年5月30日 08:40,Paul E. McKenney <[email protected]> 写道:
Quoted 22 lines · Alan Huang
There seem to be some issues with the description of state transitions. This patch fixes that.
Signed-off-by Alan Huang <[email protected]>---
together/applyrcu.tex | 7 ++++---1 file changed, 4 insertions(+), 3 deletions(-)together/applyrcu.tex +0
-0@@ -676,11 +676,12 @@ The normal path through this state machine traverses the states CLOSED,OPEN, CLOSING (with an invocation of \co{call_rcu()}), and back to CLOSED once the callback has been invoked.
If \co{open()} is invoked before the grace period completes, thetogether/applyrcu.tex +3
-2-state machine traverses the cycle OPEN, CLOSING (with an invocation -of \co{call_rcu()}), and back to CLOSED once the callback has been invoked. +state machine traverses the cycle OPEN, CLOSING (with +an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +callback has been invoked.If \co{open()} and then \co{close()} are invoked before the grace period
Quoted 8 lines
Quoted 4 lines
completes, the state machine traverses the cycle OPEN, CLOSING (with
together/applyrcu.tex +1
-1-an invocation of \co{call_rcu()}), REOPENING, and back to OPEN once the +an invocation of \co{call_rcu()}), REOPENING, RECLOSING, and back to CLOSING once thecallback has been invoked.
I took this patch (thank you!), but wonder if we should describe the additional callback and additional transition to CLOSED, both here and below. Thoughts?
Quoted 7 lines
That would be more accurate. But the transition to CLOSED has already been described at the beginning of this paragraph. And omitting this description can encourage readers to engage in critical thinking and draw their own conclusions.
But others may prefer more accurate explanations :)
So, both descriptions work for me.
Fair enough, let's keep it as your patch has it for now. ;-)
Thanx, Paul
Quoted 11 lines
Thanks,
AlanQuoted 7 lines
Thanx, Paul
Quoted 4 lines
Given an indefinite alternating sequence of \co{close()} and \co{open()}
Signature · 1 line
2.34.1