[PATCH] knfsd: nfsd4: limit number of delegations handed out.
authorNeilBrown <neilb@suse.de>
Tue, 11 Apr 2006 05:55:41 +0000 (22:55 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:53 +0000 (06:18 -0700)
commitef0f3390ebedac78bff1936bbb26606bca83e891
tree86fceb6260a80b9d3ba41b13371b2be73198c300
parent4e2fd495b520b51e4ba83340f13520b7f07e3743
[PATCH] knfsd: nfsd4: limit number of delegations handed out.

It's very easy for the server to DOS itself by just giving out too many
delegations.

For now we just solve the problem with a dumb hard limit.  Eventually we'll
want a smarter policy.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/nfsd/nfs4state.c