Commit f1ff0c27 authored by Andy Adamson's avatar Andy Adamson Committed by Trond Myklebust
Browse files

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: default avatarAndy Adamson <andros@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 280ebcf9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1408,9 +1408,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--;