OSDN Git Service

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)
commit1c5bd76d17cca6836e9d9913e4a0356cd8a36598
tree69632292fb0f231cff2e8cf0d9a943f876ff14da
parent828ed9ec1b565445b8c060c8a97be4f396ef614b
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