SUNRPC: RPC bind failures should be permanent for NULL requests
authorChuck Lever <chuck.lever@oracle.com>
Tue, 11 Sep 2007 22:00:52 +0000 (18:00 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:16:58 +0000 (17:16 -0400)
commitb79dc8ced1412e7056f3969bef40a30cc75ee530
tree2a21fd59b9c4a38e7d3effad185db40ae60ceb3b
parent906462af4c707ba0238f3579fdb2b594c4ea29c3
SUNRPC: RPC bind failures should be permanent for NULL requests

The purpose of an RPC ping (a NULL request) is to determine whether the
remote end is operating and supports the RPC program and version of the
request.

If we do an RPC bind and the remote's rpcbind service says "this
program or service isn't supported" then we have our answer already,
and we should give up immediately.

This is good for the kernel mount client, as it will cause the request
to fail, and then allow an immediate retry with different options.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c