@@ -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.
*/
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 <elder@linaro.org> --- net/ceph/messenger.c | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-)