fs: track fl_owner for leases

Just like for other lock types we should allow different owners to have
a read lease on a file.  Currently this can't happen, but with the addition
of pNFS layout leases we'll need this feature.

Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Christoph Hellwig
2015-01-21 19:14:02 +01:00
parent 6cae0a4648
commit 2ab99ee124
2 changed files with 8 additions and 6 deletions

View File

@@ -683,7 +683,7 @@ static void nfs4_put_deleg_lease(struct nfs4_file *fp)
spin_unlock(&fp->fi_lock);
if (filp) {
vfs_setlease(filp, F_UNLCK, NULL, NULL);
vfs_setlease(filp, F_UNLCK, NULL, (void **)&fp);
fput(filp);
}
}