[PATCH] RPC: separate TCP and UDP socket write paths
commit262965f53defd312a294b45366ea17907b6a616b
authorChuck Lever <cel@citi.umich.edu>
Thu, 11 Aug 2005 20:25:56 +0000 (11 16:25 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 23 Sep 2005 16:38:31 +0000 (23 12:38 -0400)
treea5e0f194c02f230ff12d9d5b0933bad9eb8810ea
parentb0d93ad511ce2f37823a07c7a3258117a431f5fb
[PATCH] RPC: separate TCP and UDP socket write paths

 Split the RPC client's main socket write path into a TCP version and a UDP
 version to eliminate another dependency on the "xprt->stream" variable.

 Compiler optimization removes unneeded code from xs_sendpages, as this
 function is now called with some constant arguments.

 We can now cleanly perform transport protocol-specific return code testing
 and error recovery in each path.

 Test-plan:
 Millions of fsx operations.  Performance characterization such as
 "sio" or "iozone".  Examine oprofile results for any changes before and
 after this patch is applied.

 Version: Thu, 11 Aug 2005 16:08:46 -0400

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprtsock.c