summaryrefslogtreecommitdiff
path: root/fs/nfs/pnfs.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-05-20 18:43:47 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-06-07 00:24:35 +0400
commit9556000d8c5af9fb3a5f0abd97c632108f3acfb1 (patch)
tree8e8015dc4682812a492b3d19d3b83a4cd610c67a /fs/nfs/pnfs.c
parent6ab59344d9796eaf1312c12cfa8ad08328d50fde (diff)
downloadlinux-9556000d8c5af9fb3a5f0abd97c632108f3acfb1.tar.xz
NFSv4.1: Ensure that layoutreturn uses the correct credential
We need to use the same credential as was used for the layoutget and/or layoutcommit operations. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/pnfs.c')
-rw-r--r--fs/nfs/pnfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index 2f86115e6ad0..89ca75f25721 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -861,6 +861,7 @@ _pnfs_return_layout(struct inode *ino)
lrp->args.inode = ino;
lrp->args.layout = lo;
lrp->clp = NFS_SERVER(ino)->nfs_client;
+ lrp->cred = lo->plh_lc_cred;
status = nfs4_proc_layoutreturn(lrp);
out: