]> git.baikalelectronics.ru Git - 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)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 8 Mar 2018 17:56:31 +0000 (12:56 -0500)
commitac3aa62975e5a26acaef8f28195e547d399d83c6
treea69494f605f82c0cb19dc8dc63fc65832c6b60dd
parent8503c275b08b265644692f612d31baffacc5f9f6
pNFS: Prevent the layout header refcount going to zero in pnfs_roc()

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>
fs/nfs/pnfs.c