• Chuck Lever's avatar
    [PATCH] RPC: separate TCP and UDP socket write paths · 262965f5
    Chuck Lever authored
     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: default avatarChuck Lever <cel@netapp.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    262965f5
xprtsock.c 27.9 KB