summaryrefslogtreecommitdiff
path: root/fs/nfs/nfs4session.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2013-07-24 20:28:37 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-08-07 21:06:08 +0400
commit73d8bde5e4b658948be0d3df51b323ed323997a2 (patch)
tree73d1ac32491fedbd0f13b85e0fcb1b79597e07cd /fs/nfs/nfs4session.c
parentd688f7b8f62857c252b886fa16e8b38b83cfaf7e (diff)
downloadlinux-73d8bde5e4b658948be0d3df51b323ed323997a2.tar.xz
NFS: Never use user credentials for lease renewal
Never try to use a non-UID 0 user credential for lease management, as that credential can change out from under us. The server will block NFSv4 lease recovery with NFS4ERR_CLID_INUSE. Since the mechanism to acquire a credential for lease management is now the same for all minor versions, replace the minor version- specific callout with a single function. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4session.c')
-rw-r--r--fs/nfs/nfs4session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4session.c b/fs/nfs/nfs4session.c
index 36e21cb29d65..202e3633d555 100644
--- a/fs/nfs/nfs4session.c
+++ b/fs/nfs/nfs4session.c
@@ -441,7 +441,7 @@ void nfs4_destroy_session(struct nfs4_session *session)
struct rpc_xprt *xprt;
struct rpc_cred *cred;
- cred = nfs4_get_exchange_id_cred(session->clp);
+ cred = nfs4_get_clid_cred(session->clp);
nfs4_proc_destroy_session(session, cred);
if (cred)
put_rpccred(cred);