Update the fabulous state diagram in "messenger.c" to reflect the
way the code operates.  Two new transitions are added:

    CLOSED -> CLOSED
    CLOSING -> CLOSING

Signed-off-by: Alex Elder <el...@linaro.org>
---
 net/ceph/messenger.c | 51 +++++++++++++++++++++++++--------------------------
 1 file changed, 25 insertions(+), 26 deletions(-)

diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 967080a..9dfdb20 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -46,32 +46,31 @@
  *          | con_sock_state_init()
  *          v
  *      ----------
- *      | CLOSED |  initialized, but no socket (and no
- *      ----------  TCP connection)
- *       ^      \
- *       |       \ con_sock_state_connecting()
- *       |        ----------------------
- *       |                              \
- *       + con_sock_state_closed()       \
- *       |+---------------------------    \
- *       | \                          \    \
- *       |  -----------                \    \
- *       |  | CLOSING |  socket event;  \    \
- *       |  -----------  await close     \    \
- *       |       ^                        \   |
- *       |       |                         \  |
- *       |       + con_sock_state_closing() \ |
- *       |      / \                         | |
- *       |     /   ---------------          | |
- *       |    /                   \         v v
- *       |   /                    --------------
- *       |  /    -----------------| CONNECTING |  socket created, TCP
- *       |  |   /                 --------------  connect initiated
- *       |  |   | con_sock_state_connected()
- *       |  |   v
- *      -------------
- *      | CONNECTED |  TCP connection established
- *      -------------
+ *      | CLOSED |  initialized, but no socket (and no TCP connection)
+ *      ----------
+ *       ^   \  \  con_sock_state_connecting()
+ *       |   /   ------------------------
+ *       +<--                            \
+ *       |\  cen_sock_state_closed()      \
+ *       | +<--------------------------    \
+ *       |  \                          \    \
+ *       | -----------                  \    \
+ *       | | CLOSING |  socket event;    \    \
+ *       | -----------  await close       \    \
+ *       |    /   ^                        \    \
+ *       |    \   |                         \   |
+ *       |     -->+ con_sock_state_closing() \  |
+ *       |       / \                         |  |
+ *       |      /   ----------------------   |  |
+ *       |     /                          \  |  v
+ *       |    /                        --------------
+ *       |   /    ---------------------| CONNECTING |  socket created, TCP
+ *       |   |   /                     --------------  connect initiated
+ *       |   |   | con_sock_state_connected()
+ *       |   |   v
+ *     -------------
+ *     | CONNECTED |  TCP connection established
+ *     -------------
  *
  * State values for ceph_connection->sock_state; NEW is assumed to be 0.
  */
-- 
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to