]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/nfs/pnfs.c
NFSv4.1: Ensure that layoutget is called using the layout credential
[karo-tx-linux.git] / fs / nfs / pnfs.c
index c5bd758e563768d76b2a43c830dcba8b53e175cf..2f86115e6ad0f57b615246f6bfb2995172f89f79 100644 (file)
@@ -766,6 +766,7 @@ send_layoutget(struct pnfs_layout_hdr *lo,
        lgp->args.inode = ino;
        lgp->args.ctx = get_nfs_open_context(ctx);
        lgp->gfp_flags = gfp_flags;
+       lgp->cred = lo->plh_lc_cred;
 
        /* Synchronously retrieve layout information from server and
         * store in lseg.