commit | 5fc43978a79e8021c189660ab63249fd29c5fb32 | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Sat Nov 20 11:13:31 2010 -0500 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Mon Nov 22 13:22:39 2010 -0500 |
tree | cac3a18f6bc6c5b91e5c2592c2d7b0ad459db50e | |
parent | 3561d43fd289f590fdae672e5eb831b8d5cf0bf6 [diff] |
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>