Skip to contentSkip to conversation

together: Fix the description of state traversal

PATCH In review Alan Huang 2 participants 4 messages May 28, 2023 – Jun 2, 2023

lore
Share & tools
lore

Alan Huang

author
#0 lore raw

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
index 09a265f7..dee027b9 100644
@@ -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
#1 lore raw
Quoted 16 lines · Alan Huang

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 +0 -0
index 09a265f7..dee027b9 100644
@@ -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 -0
 Given an indefinite alternating sequence of \co{close()} and \co{open()}
Signature · 1 line
2.34.1
author
#2 lore raw
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.

---
together/applyrcu.tex | 7 ++++---

1 file changed, 4 insertions(+), 3 deletions(-)
together/applyrcu.tex +0 -0
index 09a265f7..dee027b9 100644
@@ -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 +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 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?

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
#3 lore raw
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.

---
together/applyrcu.tex | 7 ++++---

1 file changed, 4 insertions(+), 3 deletions(-)
together/applyrcu.tex +0 -0
index 09a265f7..dee027b9 100644
@@ -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 +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 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?

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,
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