Commit 44fa34cd authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

nfs4: improve state handler concurrency

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
parent ea6f71a3
Pipeline #1948 passed with stage
in 1 minute and 9 seconds