summaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2009-12-03 15:58:56 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2009-12-03 15:58:56 -0500
commitcaabea8a565fb4e16f8e58e16bb9d535e591b709 (patch)
tree15e0cf4514999c4fb9596adece9e22adfaee2a31 /net/tipc/socket.c
parent012da158f636347c4eb28fd1e1cca020fef5e54d (diff)
downloadop-kernel-dev-caabea8a565fb4e16f8e58e16bb9d535e591b709.zip
op-kernel-dev-caabea8a565fb4e16f8e58e16bb9d535e591b709.tar.gz
SUNRPC: Use soft connect semantics when performing RPC ping
Currently, if a remote RPC service is unreachable, an RPC ping will hang until the underlying transport connect attempt times out. A more desirable behavior might be to have the ping fail immediately so upper layers can recover appropriately. In the case of an NFS mount, for instance, this would mean the mount(2) system call could fail immediately if the server isn't listening, rather than hanging uninterruptibly for more than 3 minutes. Change rpc_ping() so that it fails immediately for connection-oriented transports. rpc_create() will then fail immediately for such transports if an RPC ping was requested. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud