mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-20 09:31:09 +00:00
NFS/pNFS: Fix a leak of the layout 'plh_outstanding' counter
commitcb2856c597
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>
This commit is contained in:
parent
b666f394d6
commit
01a12a24f9
1 changed files with 1 additions and 0 deletions
|
@ -2245,6 +2245,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 a new issue