]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Enable layoutreturn operation for return-on-close
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 16 Nov 2016 06:11:25 +0000 (01:11 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 1 Dec 2016 22:21:47 +0000 (17:21 -0500)
commit97d8cb8984492f7b63bf0694eb9ffb067fe61906
tree69632292fb0f231cff2e8cf0d9a943f876ff14da
parent5e8ebb5e508e9151aee0834a45b8e4d2b736b6ca
pNFS: Enable layoutreturn operation for return-on-close

Amend the pnfs return on close helper functions to enable sending the
layoutreturn op in CLOSE/DELEGRETURN. This closes a potential race between
CLOSE/DELEGRETURN and parallel OPEN calls to the same file, and allows the
client and the server to agree on whether or not there is an outstanding
layout.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c
fs/nfs/pnfs.c
fs/nfs/pnfs.h