diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-09-01 15:06:54 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@primarydata.com> | 2014-10-07 14:06:13 -0400 |
commit | 4d01b7f5e7576858b71cbaa72b541e17a229cb91 (patch) | |
tree | 5ea9a839335ca6159ac24f1cf5ddfbe3ff1e7c74 /fs/nfsd/vfs.h | |
parent | 03d12ddf845a4eb874ffa558d65a548aee9b715b (diff) | |
download | linux-4d01b7f5e7576858b71cbaa72b541e17a229cb91.tar.bz2 |
locks: give lm_break a return value
Christoph suggests:
"Add a return value to lm_break so that the lock manager can tell the
core code "you can delete this lease right now". That gets rid of
the games with the timeout which require all kinds of race avoidance
code in the users."
Do that here and have the nfsd lease break routine use it when it detects
that there was a race between setting up the lease and it being broken.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/nfsd/vfs.h')
0 files changed, 0 insertions, 0 deletions