diff options
author | J. Bruce Fields <bfields@redhat.com> | 2011-02-24 11:25:33 -0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-04-07 14:36:40 -0400 |
commit | 31d68ef65c7d49def19c1bae4e01b87d66cf5a56 (patch) | |
tree | e55082c9573cb189f352c5fa9eb1c9d0ef5cf2d0 /include | |
parent | 586c52cc61b5b84c70102208b78269ef5924bf49 (diff) | |
download | linux-31d68ef65c7d49def19c1bae4e01b87d66cf5a56.tar.gz linux-31d68ef65c7d49def19c1bae4e01b87d66cf5a56.tar.bz2 linux-31d68ef65c7d49def19c1bae4e01b87d66cf5a56.zip |
SUNRPC: Don't wait for full record to receive tcp data
Ensure that we immediately read and buffer data from the incoming TCP
stream so that we grow the receive window quickly, and don't deadlock on
large READ or WRITE requests.
Also do some minor exit cleanup.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index 04dba23c59f2..85c50b40759d 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h @@ -28,6 +28,7 @@ struct svc_sock { /* private TCP part */ u32 sk_reclen; /* length of record */ u32 sk_tcplen; /* current read length */ + struct page * sk_pages[RPCSVC_MAXPAGES]; /* received data */ }; /* |