NFS/pNFS: Fix a leak of the layout 'plh_outstanding' counter
commit5.4-rM2-2.2.x-imx-squashedcb2856c597
upstream. If we exit _lgopen_prepare_attached() without setting a layout, we will currently leak the plh_outstanding counter. Fixes:411ae722d1
("pNFS: Wait for stale layoutget calls to complete in pnfs_update_layout()") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
parent
aa2399f55e
commit
6b3ae2030d
|
@ -2215,6 +2215,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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue