• J. Bruce Fields's avatar
    nfsd: fix performance-limiting session calculation · c54f24e3
    J. Bruce Fields authored
    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: default avatarChris Tracy <ctracy@engr.scu.edu>
    Cc: stable@vger.kernel.org
    Fixes: de766e57 "nfsd: give out fewer session slots as limit approaches"
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    c54f24e3
nfs4state.c 188 KB