diff options
author | Sage Weil <sage@newdream.net> | 2010-04-22 05:45:59 +0200 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-03 19:49:24 +0200 |
commit | 684be25c52a1e43638ced160be0b0b46596e7f2b (patch) | |
tree | c6cde28f26e12f1ef33990a6d8cb10ab975dddba /fs/ceph/messenger.c | |
parent | ceph: add missing #includes (diff) | |
download | linux-684be25c52a1e43638ced160be0b0b46596e7f2b.tar.xz linux-684be25c52a1e43638ced160be0b0b46596e7f2b.zip |
ceph: fix seq counting for skipped messages
Increment in_seq even when the message is skipped for some reason.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/messenger.c')
-rw-r--r-- | fs/ceph/messenger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index cdaaa131add3..e7b91e093f54 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c @@ -1379,6 +1379,7 @@ static int read_partial_message(struct ceph_connection *con) con->in_base_pos = -front_len - middle_len - data_len - sizeof(m->footer); con->in_tag = CEPH_MSGR_TAG_READY; + con->in_seq++; return 0; } if (IS_ERR(con->in_msg)) { @@ -2030,6 +2031,7 @@ void ceph_con_revoke_message(struct ceph_connection *con, struct ceph_msg *msg) ceph_msg_put(con->in_msg); con->in_msg = NULL; con->in_tag = CEPH_MSGR_TAG_READY; + con->in_seq++; } else { dout("con_revoke_pages %p msg %p pages %p no-op\n", con, con->in_msg, msg); |