Skip to content
Commit 21fd9e87 authored by Chengen Du's avatar Chengen Du Committed by Anna Schumaker
Browse files

NFS: Correct timing for assigning access cache timestamp



When the user's login time is newer than the cache's timestamp,
the original entry in the RB-tree will be replaced by a new entry.
Currently, the timestamp is only set if the entry is not found in
the RB-tree, which can cause the timestamp to be undefined when
the entry exists. This may result in a significant increase in
ACCESS operations if the timestamp is set to zero.

Signed-off-by: default avatarChengen Du <chengen.du@canonical.com>
Fixes: 0eb43812

 ("NFS: Clear the file access cache upon login”)
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 7ff84910
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment