lockd: reject reclaims outside the grace period
authorJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 6 Feb 2008 20:05:12 +0000 (15:05 -0500)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 3 Oct 2008 20:19:20 +0000 (16:19 -0400)
commitd22b1cff099737f74f3ac5950094508b4cddec1e
treed93e297275719fd4a1b7a7a6731bf3befd44a5a6
parentb2b5028905226f85075a408b1118857c9aa48bb3
lockd: reject reclaims outside the grace period

The current lockd does not reject reclaims that arrive outside of the
grace period.

Accepting a reclaim means promising to the client that no conflicting
locks were granted since last it held the lock.  We can meet that
promise if we assume the only lockers are nfs clients, and that they are
sufficiently well-behaved to reclaim only locks that they held before,
and that only reclaim locks have been permitted so far.  Once we leave
the grace period (and start permitting non-reclaims), we can no longer
keep that promise.  So we must start rejecting reclaims at that point.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/lockd/svclock.c