aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/messenger.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-05-12 18:23:30 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:38 -0400
commitaba558e28ac40a598542d995c09efa8439ee3ed4 (patch)
tree22df6fe65694b3ebe5a0a56dbf96c3973f3c5812 /fs/ceph/messenger.c
parentca9d93a292e327bbcddd8f8ea4197397e35097d4 (diff)
ceph: save peer feature bits in connection structure
These are used for adjusting behavior, such as conditionally encoding a newer message format. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/messenger.c')
-rw-r--r--fs/ceph/messenger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c
index d18a544490f6..50c5f24086fd 100644
--- a/fs/ceph/messenger.c
+++ b/fs/ceph/messenger.c
@@ -1223,6 +1223,7 @@ static int process_connect(struct ceph_connection *con)
1223 clear_bit(CONNECTING, &con->state); 1223 clear_bit(CONNECTING, &con->state);
1224 con->peer_global_seq = le32_to_cpu(con->in_reply.global_seq); 1224 con->peer_global_seq = le32_to_cpu(con->in_reply.global_seq);
1225 con->connect_seq++; 1225 con->connect_seq++;
1226 con->peer_features = server_feat;
1226 dout("process_connect got READY gseq %d cseq %d (%d)\n", 1227 dout("process_connect got READY gseq %d cseq %d (%d)\n",
1227 con->peer_global_seq, 1228 con->peer_global_seq,
1228 le32_to_cpu(con->in_reply.connect_seq), 1229 le32_to_cpu(con->in_reply.connect_seq),