Skip to content
  • Tigran Mkrtchyan's avatar
    nfs4: improve state handler concurrency · 44fa34cd
    Tigran Mkrtchyan authored
    Motivation:
    The state handler keeps track of NFSv4 clients. This duty is not
    symmetric - updates happen when a client is added or removed, but
    queried almost for any compound operation in a session. Thus on a
    busy system we can observe thread serialization.
    
    Modification:
    replace synchronized blocks with read/write locks.
    
    Result:
    a better concurrency in a multi-client environment.
    
    Acked-by: Paul Millar
    Acked-by: Albert Rossi
    Target: master
    44fa34cd