diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-12-03 20:58:56 (GMT) |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-12-03 20:58:56 (GMT) |
commit | caabea8a565fb4e16f8e58e16bb9d535e591b709 (patch) | |
tree | 15e0cf4514999c4fb9596adece9e22adfaee2a31 /firmware | |
parent | 012da158f636347c4eb28fd1e1cca020fef5e54d (diff) | |
download | linux-fsl-qoriq-caabea8a565fb4e16f8e58e16bb9d535e591b709.tar.xz |
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 'firmware')
0 files changed, 0 insertions, 0 deletions