]> git.baikalelectronics.ru Git - kernel.git/commit
NFS/pNFS: Fix a leak of the layout 'plh_outstanding' counter
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 6 Jan 2021 19:13:22 +0000 (14:13 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 10 Jan 2021 18:32:52 +0000 (13:32 -0500)
commit1ce938b58aeab0c3d5d6f6f46f7333afd69c2ade
tree9b00ee9da24645404c8e40dd8034c14ccddf02f5
parent77d9e42de5232cd5c7d900731276fc48250e8716
NFS/pNFS: Fix a leak of the layout 'plh_outstanding' counter

If we exit _lgopen_prepare_attached() without setting a layout, we will
currently leak the plh_outstanding counter.

Fixes: ff7f657ba1a8 ("pNFS: Wait for stale layoutget calls to complete in pnfs_update_layout()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pnfs.c