]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7eacbf8edbc8e23873bbbd0f9c22a5a12ccba1a1
tree7f1ddee8da8fb7b4a7c771c1e1b1c31fe223ae8a
parentf7b26e20092436be6bbee190f3663f5c8a8be731
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