]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
NFS: Never use user credentials for lease renewal
authorChuck Lever <chuck.lever@oracle.com>
Wed, 24 Jul 2013 16:28:37 +0000 (12:28 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 7 Aug 2013 17:06:08 +0000 (13:06 -0400)
commit73d8bde5e4b658948be0d3df51b323ed323997a2
tree73d1ac32491fedbd0f13b85e0fcb1b79597e07cd
parentd688f7b8f62857c252b886fa16e8b38b83cfaf7e
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>
fs/nfs/nfs4_fs.h
fs/nfs/nfs4proc.c
fs/nfs/nfs4session.c
fs/nfs/nfs4state.c