Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 69295
b: refs/heads/master
c: 2199700
h: refs/heads/master
i:
  69293: 5984962
  69291: a128198
  69287: 1684344
  69279: 7002894
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Oct 9, 2007
1 parent 812252a commit ca69f21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 58eaab93376cb524fd0f1531a56902d2b3eaa619
refs/heads/master: 2199700f1d660494d2552278354422c51becb686
12 changes: 6 additions & 6 deletions trunk/net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ static int xs_udp_send_request(struct rpc_task *task)
dprintk("RPC: xs_udp_send_request(%u) = %d\n",
xdr->len - req->rq_bytes_sent, status);

task->tk_bytes_sent += status;
if (likely(status >= (int) req->rq_slen))
return 0;

/* Still some bytes left; set up for a retry later. */
if (status > 0)
if (status >= 0) {
task->tk_bytes_sent += status;
if (status >= req->rq_slen)
return 0;
/* Still some bytes left; set up for a retry later. */
status = -EAGAIN;
}

switch (status) {
case -ENETUNREACH:
Expand Down

0 comments on commit ca69f21

Please sign in to comment.