SUNRPC: Fix an infinite loop in call_refresh/call_refreshresult
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 20 Nov 2010 16:13:31 +0000 (11:13 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 22 Nov 2010 18:22:39 +0000 (13:22 -0500)
commit5fc43978a79e8021c189660ab63249fd29c5fb32
treecac3a18f6bc6c5b91e5c2592c2d7b0ad459db50e
parent3561d43fd289f590fdae672e5eb831b8d5cf0bf6
SUNRPC: Fix an infinite loop in call_refresh/call_refreshresult

If the rpcauth_refreshcred() call returns an error other than
EACCES, ENOMEM or ETIMEDOUT, we currently end up looping forever
between call_refresh and call_refreshresult.

The correct thing to do here is to exit on all errors except
EAGAIN and ETIMEDOUT, for which case we retry 3 times, then
return EACCES.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c