diff options
author | Andy Adamson <andros@netapp.com> | 2013-08-14 19:59:13 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-29 22:42:15 +0400 |
commit | 94f32adc674b58aa26729ea6d526aa9d0809f3ed (patch) | |
tree | d44d0c7528c74ab53853da82c9b4218b85f55742 | |
parent | c015250cef8e61c1f32cecdcf36b286dcecbc419 (diff) | |
download | linux-94f32adc674b58aa26729ea6d526aa9d0809f3ed.tar.xz |
SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult
commit f1ff0c27fd9987c59d707cd1a6b6c1fc3ae0a250 upstream.
The NFS layer needs to know when a key has expired.
This change also returns -EKEYEXPIRED to the application, and the informative
"Key has expired" error message is displayed. The user then knows that
credential renewal is required.
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | net/sunrpc/clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index ecbc4e3d83ad..b5449656a383 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -1423,9 +1423,9 @@ call_refreshresult(struct rpc_task *task) return; case -ETIMEDOUT: rpc_delay(task, 3*HZ); - case -EKEYEXPIRED: case -EAGAIN: status = -EACCES; + case -EKEYEXPIRED: if (!task->tk_cred_retry) break; task->tk_cred_retry--; |