Commit 21fd9e8
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: Chengen Du <chengen.du@canonical.com>
Fixes: 0eb4381 ("NFS: Clear the file access cache upon login”)
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>1 parent 7ff8491 commit 21fd9e8
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3089 | 3089 | | |
3090 | 3090 | | |
3091 | 3091 | | |
3092 | | - | |
3093 | 3092 | | |
3094 | 3093 | | |
3095 | 3094 | | |
| |||
3114 | 3113 | | |
3115 | 3114 | | |
3116 | 3115 | | |
| 3116 | + | |
3117 | 3117 | | |
3118 | 3118 | | |
3119 | 3119 | | |
| |||
0 commit comments