aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/messenger.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-10 17:34:36 -0500
committerSage Weil <sage@newdream.net>2009-11-10 17:34:48 -0500
commiteed0ef2caf928327332da54d23579debe629d5bc (patch)
tree396319ef2e65cc775b1466f446edc535401c5cea /fs/ceph/messenger.h
parent685f9a5d14194fc35db73e5e7370740ccc14b64a (diff)
ceph: separate banner and connect during handshake into distinct stages
We need to make sure we only swab the address during the banner once. So break process_banner out of process_connect, and clean up the surrounding code so that these are distinct phases of the handshake. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/messenger.h')
-rw-r--r--fs/ceph/messenger.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/messenger.h b/fs/ceph/messenger.h
index e016fa7cf970..80f7e1e94448 100644
--- a/fs/ceph/messenger.h
+++ b/fs/ceph/messenger.h
@@ -104,8 +104,8 @@ struct ceph_msg_pos {
104 * thread is currently opening, reading or writing data to the socket. 104 * thread is currently opening, reading or writing data to the socket.
105 */ 105 */
106#define LOSSYTX 0 /* we can close channel or drop messages on errors */ 106#define LOSSYTX 0 /* we can close channel or drop messages on errors */
107#define LOSSYRX 1 /* peer may reset/drop messages */ 107#define CONNECTING 1
108#define CONNECTING 2 108#define NEGOTIATING 2
109#define KEEPALIVE_PENDING 3 109#define KEEPALIVE_PENDING 3
110#define WRITE_PENDING 4 /* we have data ready to send */ 110#define WRITE_PENDING 4 /* we have data ready to send */
111#define QUEUED 5 /* there is work queued on this connection */ 111#define QUEUED 5 /* there is work queued on this connection */