Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92869
b: refs/heads/master
c: ff2d7db
h: refs/heads/master
i:
  92867: 106a1ab
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 29, 2008
1 parent d5d5d16 commit 4b19a27
Show file tree
Hide file tree
Showing 2 changed files with 6 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: f5fb7b06e4e4ab18326f067f4317b2016ce18af2
refs/heads/master: ff2d7db848f8db7cade39e55f78f86d77e0de01a
7 changes: 5 additions & 2 deletions trunk/net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,7 @@ static void xs_tcp_data_ready(struct sock *sk, int bytes)
{
struct rpc_xprt *xprt;
read_descriptor_t rd_desc;
int read;

dprintk("RPC: xs_tcp_data_ready...\n");

Expand All @@ -1084,8 +1085,10 @@ static void xs_tcp_data_ready(struct sock *sk, int bytes)

/* We use rd_desc to pass struct xprt to xs_tcp_data_recv */
rd_desc.arg.data = xprt;
rd_desc.count = 65536;
tcp_read_sock(sk, &rd_desc, xs_tcp_data_recv);
do {
rd_desc.count = 65536;
read = tcp_read_sock(sk, &rd_desc, xs_tcp_data_recv);
} while (read > 0);
out:
read_unlock(&sk->sk_callback_lock);
}
Expand Down

0 comments on commit 4b19a27

Please sign in to comment.