]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Ensure client closes the socket when server initiates a close
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 3 Jan 2006 08:55:55 +0000 (09:55 +0100)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 6 Jan 2006 19:58:57 +0000 (14:58 -0500)
commitc50f2382cc3073c6f09ce3c0c7897a69a745e49b
treec18dbe84dfe679d19a581ea0c9bfb931daa08917
parent4430d2654b968b86f18340b62e947ff637922262
SUNRPC: Ensure client closes the socket when server initiates a close

 If the server decides to close the RPC socket, we currently don't actually
 respond until either another RPC call is scheduled, or until xprt_autoclose()
 gets called by the socket expiry timer (which may be up to 5 minutes
 later).

 This patch ensures that xprt_autoclose() is called much sooner if the
 server closes the socket.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/xprt.h
net/sunrpc/xprt.c
net/sunrpc/xprtsock.c