author: Trond Myklebust <trond.myklebust@hammerspace.com> 2021-01-06 14:13:22 -0500
committer: Trond Myklebust <trond.myklebust@hammerspace.com> 2021-01-10 13:32:52 -0500
commit: cb2856c5971723910a86b7d1d0cf623d6919cbc4
parent: 46c9ea1d4fee4cf1f8cc6001b9c14aae61b3d502
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
index fc13a3c8bc48..4f274f21c4ab 100644
--- a/fs/nfs/pnfs.c
+++ b/fs/nfs/pnfs.c
@@ -2244,6 +2244,7 @@ static void _lgopen_prepare_attached(struct nfs4_opendata *data,
&rng, GFP_KERNEL);
if (!lgp) {
pnfs_clear_first_layoutget(lo);
+ nfs_layoutget_end(lo);
pnfs_put_layout_hdr(lo);
return;
}