diff options
author | Chengen Du <[email protected]> | 2023-03-08 16:03:27 +0800 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2023-03-14 15:19:44 -0400 |
commit | 21fd9e8700de86d1169f6336e97d7a74916ed04a (patch) | |
tree | 9f922d45f5dfa156f2fe4c82a88ac7ac398fa9bf /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 7ff84910c66c9144cc0de9d9deed9fb84c03aff0 (diff) |
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 <[email protected]>
Fixes: 0eb43812c027 ("NFS: Clear the file access cache upon login”)
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions