OSDN Git Service

nfsd: give out fewer session slots as limit approaches
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 19 Sep 2017 23:25:41 +0000 (19:25 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 4 Oct 2017 20:25:01 +0000 (16:25 -0400)
commitde766e570413bd0484af0b580299b495ada625c3
treee878d184e21f22b5ef2bc67346e17b6bf07b3259
parent44d8660d3bb0a1c8363ebcb906af2343ea8e15f6
nfsd: give out fewer session slots as limit approaches

Instead of granting client's full requests until we hit our DRC size
limit and then failing CREATE_SESSIONs (and hence mounts) completely,
start granting clients smaller slot tables as we approach the limit.

The factor chosen here is pretty much arbitrary.

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