nfsd4: return delegation immediately if lease fails
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 21 Jun 2013 15:05:32 +0000 (11:05 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 1 Jul 2013 21:32:07 +0000 (17:32 -0400)
commitd08d32e6e5c0fee127d3b20d70f5b59d8af0a261
treef4a7ff99509cd1d2b1d78f597aa8e102ee4ce77d
parent0a262ffb75275e48caa17e80b96504354e94f6c2
nfsd4: return delegation immediately if lease fails

This case shouldn't happen--the administrator shouldn't really allow
other applications access to the export until clients have had the
chance to reclaim their state--but if it does then we should set the
"return this lease immediately" bit on the reply.  That still leaves
some small races, but it's the best the protocol allows us to do in the
case a lease is ripped out from under us....

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c