]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix performance-limiting session calculation
authorJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Feb 2019 15:47:00 +0000 (10:47 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 21 Feb 2019 15:47:00 +0000 (10:47 -0500)
commitaf6363e2aa2cf9ec59b54b261005bef921d46f2a
tree49958ea45d072adb41954bbd5b8b273284eaf889
parentd752ab94475c991a54f311126fdb7599128ebe16
nfsd: fix performance-limiting session calculation

We're unintentionally limiting the number of slots per nfsv4.1 session
to 10.  Often more than 10 simultaneous RPCs are needed for the best
performance.

This calculation was meant to prevent any one client from using up more
than a third of the limit we set for total memory use across all clients
and sessions.  Instead, it's limiting the client to a third of the
maximum for a single session.

Fix this.

Reported-by: Chris Tracy <ctracy@engr.scu.edu>
Cc: stable@vger.kernel.org
Fixes: f124e546c861 "nfsd: give out fewer session slots as limit approaches"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c