]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerBrian Maly <brian.maly@oracle.com>
Tue, 21 Aug 2018 18:41:44 +0000 (14:41 -0400)
commit99bb82031aac875304c0eec051cdab722b87ea55
tree6ee0022da48b89f778b0e5e6cc80aef2cc77702d
parent37e45c957b29de78b66a410dc93b63fe03f399a2
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>
(cherry picked from commit de766e570413bd0484af0b580299b495ada625c3)

Orabug: 28023821

Signed-off-by: Manjunath Patil <manjunath.b.patil@oracle.com>
Reviewed-by: Calum Mackay <calum.mackay@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
fs/nfsd/nfs4state.c