]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2cc6e37ac72fa5696db708c240a6492e0346b3fb
tree216480ad1398644a7a3e68181238e36a2f512dc5
parent51a01305e4b21641f9aaf7a494127fc181aa4d94
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