Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188650
b: refs/heads/master
c: 92ac41d
h: refs/heads/master
v: v3
  • Loading branch information
Sage Weil committed Dec 22, 2009
1 parent d176e68 commit c8fbc67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e095e8b40b0402ad3bcadc5b8d84c38b26c30b2
refs/heads/master: 92ac41d0a4ab26fb68d3f841332e5d1f15d79123
6 changes: 4 additions & 2 deletions trunk/fs/ceph/messenger.c
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,6 @@ static void prepare_write_connect(struct ceph_messenger *msgr,
con->out_connect.global_seq = cpu_to_le32(global_seq);
con->out_connect.protocol_version = cpu_to_le32(proto);
con->out_connect.flags = 0;
if (test_bit(LOSSYTX, &con->state))
con->out_connect.flags = CEPH_MSG_CONNECT_LOSSY;

if (!after_banner) {
con->out_kvec_left = 0;
Expand Down Expand Up @@ -1168,6 +1166,10 @@ static int process_connect(struct ceph_connection *con)
con->connect_seq);
WARN_ON(con->connect_seq !=
le32_to_cpu(con->in_reply.connect_seq));

if (con->in_reply.flags & CEPH_MSG_CONNECT_LOSSY)
set_bit(LOSSYTX, &con->state);

prepare_read_tag(con);
break;

Expand Down

0 comments on commit c8fbc67

Please sign in to comment.