Jeff Layton 7919d0a27f nfsd: add a LRU list for blocked locks
It's possible for a client to call in on a lock that is blocked for a
long time, but discontinue polling for it. A malicious client could
even set a lock on a file, and then spam the server with failing lock
requests from different lockowners that pile up in a DoS attack.

Add the blocked lock structures to a per-net namespace LRU when hashing
them, and timestamp them. If the lock request is not revisited after a
lease period, we'll drop it under the assumption that the client is no
longer interested.

This also gives us a mechanism to clean up these objects at server
shutdown time as well.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
2016-09-26 15:20:36 -04:00
..
2014-07-08 17:14:27 -04:00
2016-08-04 19:59:06 -04:00
2016-08-04 19:59:06 -04:00
2016-03-18 11:42:53 -04:00
2014-08-17 12:00:12 -04:00
2016-09-26 15:20:36 -04:00
2016-01-22 18:04:28 -05:00
2016-08-04 17:11:49 -04:00
2016-07-13 15:53:41 -04:00
2016-09-26 15:20:36 -04:00
2016-05-29 19:08:00 -04:00
2016-01-14 17:32:51 -05:00
2016-08-11 11:42:08 -04:00
2016-08-04 17:11:49 -04:00