NFSv4: Add support for application leases underpinned by a delegation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 7 May 2021 14:06:13 +0000 (10:06 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 13 Jun 2021 23:36:28 +0000 (19:36 -0400)
commite93a5e9306a576011f03011b492d4fbaa274477b
tree216480ad1398644a7a3e68181238e36a2f512dc5
parent6b4befc0a06bc412f5b5a17fdad473aaed943170
NFSv4: Add support for application leases underpinned by a delegation

If the NFSv4 client already holds a delegation for a file, then we can
support application leases (i.e. fcntl(fd, F_SETLEASE,...)) because the
underlying delegation guarantees that the file is not being modified on
the server by another client in a way that might conflict with the lease
guarantees.

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