Commit 31534444 authored by Trond Myklebust's avatar Trond Myklebust Committed by Yang Yingliang
Browse files

NFS/pNFS: Fix a leak of the layout 'plh_outstanding' counter



stable inclusion
from linux-4.19.169
commit b2f9fbbc3fa20f066e20f1d676175e4af0e177ba

--------------------------------

commit cb2856c5 upstream.

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

Fixes: 411ae722 ("pNFS: Wait for stale layoutget calls to complete in pnfs_update_layout()")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent a9749824
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment