pNFS: Prevent the layout header refcount going to zero in pnfs_roc()
authorTrond Myklebust <[email protected]>
Wed, 7 Mar 2018 19:49:06 +0000 (14:49 -0500)
committerTrond Myklebust <[email protected]>
Thu, 8 Mar 2018 17:56:31 +0000 (12:56 -0500)
commit9c6376ebddad585da4238532dd6d90ae23ffee67
treea69494f605f82c0cb19dc8dc63fc65832c6b60dd
parentd9ee65539d3eabd9ade46cca1780e3309ad0f907
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 <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Cc: [email protected] # v4.10+
Tested-by: Tigran Mkrtchyan <[email protected]>
fs/nfs/pnfs.c