]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
pNFS: Prevent the layout header refcount going to zero in pnfs_roc()
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 7 Mar 2018 19:49:06 +0000 (14:49 -0500)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 15 Mar 2018 21:29:17 +0000 (18:29 -0300)
commit39add0e3464764eaaa866c2d6add1e4975f22345
tree30360bd00b00dbd0d9fca0b4bfee194776119648
parent8acb2a938dc1c497e61e44dd7d3cba7a6eb12015
pNFS: Prevent the layout header refcount going to zero in pnfs_roc()

BugLink: http://bugs.launchpad.net/bugs/1756100
commit 9c6376ebddad585da4238532dd6d90ae23ffee67 upstream.

Ensure that we hold a reference to the layout header when processing
the pNFS return-on-close so that the refcount value does not inadvertently
go to zero.

Reported-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: stable@vger.kernel.org # v4.10+
Tested-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
fs/nfs/pnfs.c