OSDN Git Service

SUNRPC: Enable the keepalive option for TCP sockets
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 24 Sep 2013 15:25:22 +0000 (11:25 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 1 Oct 2013 22:22:10 +0000 (18:22 -0400)
commit7f260e8575bf53b93b77978c1e39f8e67612759c
tree7f1ddee8da8fb7b4a7c771c1e1b1c31fe223ae8a
parenta6f951ddbdfb7bd87d31a44f61abe202ed6ce57f
SUNRPC: Enable the keepalive option for TCP sockets

For NFSv4 we want to avoid retransmitting RPC calls unless the TCP
connection breaks. However we still want to detect TCP connection
breakage as soon as possible. Do this by setting the keepalive option
with the idle timeout and count set to the 'timeo' and 'retrans' mount
options.

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