SUNRPC: Add a new error code for retry waiting for another binder
authorChuck Lever <chuck.lever@oracle.com>
Tue, 11 Sep 2007 22:00:41 +0000 (18:00 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:16:53 +0000 (17:16 -0400)
commit2429cbf6a1566b8e92436d615387e4250feab46b
treee3d4906948d68a3d9bcb546b6eb6563f1cffaa60
parent4784cb51a3f66d401f8a08810231aa7dc8f44e43
SUNRPC: Add a new error code for retry waiting for another binder

Add new error code processing to the kernel's rpcbind client and to
call_bind_status() to distinguish two cases:

Case 1: the remote has replied that the program/version tuple is not
registered (returns -EACCES)

Case 2: another process is already in the middle of binding on this
transport (now returns -EAGAIN)

This change allows more specific retry processing for each of these two
cases.

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