Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188735
b: refs/heads/master
c: 080af17
h: refs/heads/master
i:
  188733: f722b4e
  188731: b7c1bb0
  188727: 1fbaf0b
  188719: 2b0c335
  188703: f730de5
  188671: 29c5afa
v: v3
  • Loading branch information
Sage Weil committed Feb 26, 2010
1 parent 48f2c42 commit dec4c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: c99eb1c7263a44e63161a041a778b345b5cf0b6a
refs/heads/master: 080af17e9c6360c5a835528e8de3141a46273ed2
6 changes: 1 addition & 5 deletions trunk/fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1899,22 +1899,18 @@ static void handle_forward(struct ceph_mds_client *mdsc,
u64 tid = le64_to_cpu(msg->hdr.tid);
u32 next_mds;
u32 fwd_seq;
u8 must_resend;
int err = -EINVAL;
void *p = msg->front.iov_base;
void *end = p + msg->front.iov_len;

ceph_decode_need(&p, end, 2*sizeof(u32), bad);
next_mds = ceph_decode_32(&p);
fwd_seq = ceph_decode_32(&p);
must_resend = ceph_decode_8(&p);

WARN_ON(must_resend); /* shouldn't happen. */

mutex_lock(&mdsc->mutex);
req = __lookup_request(mdsc, tid);
if (!req) {
dout("forward %llu dne\n", tid);
dout("forward %llu to mds%d - req dne\n", tid, next_mds);
goto out; /* dup reply? */
}

Expand Down

0 comments on commit dec4c42

Please sign in to comment.