aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndy Adamson <andros@netapp.com>2013-08-14 11:59:13 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-09-03 15:25:08 -0400
commitf1ff0c27fd9987c59d707cd1a6b6c1fc3ae0a250 (patch)
tree5463eb4ba08b6737a13e47352531ecdff7351f17 /net
parent280ebcf97ce4b252c72af74ff3149ab5a5c9e680 (diff)
SUNRPC: don't map EKEYEXPIRED to EACCES in call_refreshresult
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>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 8572d3270783..631085ff0ad9 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1408,9 +1408,9 @@ call_refreshresult(struct rpc_task *task)
1408 return; 1408 return;
1409 case -ETIMEDOUT: 1409 case -ETIMEDOUT:
1410 rpc_delay(task, 3*HZ); 1410 rpc_delay(task, 3*HZ);
1411 case -EKEYEXPIRED:
1412 case -EAGAIN: 1411 case -EAGAIN:
1413 status = -EACCES; 1412 status = -EACCES;
1413 case -EKEYEXPIRED:
1414 if (!task->tk_cred_retry) 1414 if (!task->tk_cred_retry)
1415 break; 1415 break;
1416 task->tk_cred_retry--; 1416 task->tk_cred_retry--;