diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-21 19:17:03 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-02-02 18:09:38 +0100 |
commit | 11afe9f76e121e960445deee5b7f26f0787a1990 (patch) | |
tree | 512e3b9dd23b394b826a18eca3947df9487c28bc /virt | |
parent | 2ab99ee12440e66ec1efd2a98599010471de785e (diff) | |
download | op-kernel-dev-11afe9f76e121e960445deee5b7f26f0787a1990.zip op-kernel-dev-11afe9f76e121e960445deee5b7f26f0787a1990.tar.gz |
fs: add FL_LAYOUT lease type
This (ab-)uses the file locking code to allow filesystems to recall
outstanding pNFS layouts on a file. This new lease type is similar but
not quite the same as FL_DELEG. A FL_LAYOUT lease can always be granted,
an a per-filesystem lock (XFS iolock for the initial implementation)
ensures not FL_LAYOUT leases granted when we would need to recall them.
Also included are changes that allow multiple outstanding read
leases of different types on the same file as long as they have a
differnt owner. This wasn't a problem until now as nfsd never set
FL_LEASE leases, and no one else used FL_DELEG leases, but given that
nfsd will also issues FL_LAYOUT leases we will have to handle it now.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions