SUNRPC: Don't wait for full record to receive tcp data
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 24 Feb 2011 19:25:33 +0000 (11:25 -0800)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 7 Apr 2011 18:36:40 +0000 (14:36 -0400)
commit31d68ef65c7d49def19c1bae4e01b87d66cf5a56
treee55082c9573cb189f352c5fa9eb1c9d0ef5cf2d0
parent586c52cc61b5b84c70102208b78269ef5924bf49
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>
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c