]> 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)
commit83df62cc9ac24feb71f54172a96d6a979431c3e3
tree9b00ee9da24645404c8e40dd8034c14ccddf02f5
parent96d94c03c11e93926698ec53ddc9ec9290269546
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: 1b4c166375ec ("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