diff options
author | Soumya Koduri <skoduri@redhat.com> | 2015-04-22 15:48:52 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-05-04 16:27:41 -0700 |
commit | 86fb4828f5566e455a12ac2207999120275b61a7 (patch) | |
tree | 8d5806d43b1f16024dc38f31847a76b2c07a879c /tests/include.rc | |
parent | f8bb9ac26aad8c0068bcc45a34ecb4a73cc06e7a (diff) |
Upcall: Cleanup expired client entries
To cleanup expired client entries (with access_time > 2*CACHE_INVALIDATION_TIMEOUT),
have
* defined a global list to contain all the upcall_inode_ctx allocated
* Every time a upcall_inode_ctx is allocated, it is added to the global list
* during inode_forget, that upcall_inode_ctx is marked for destroy
* created a reaper thread which scans through that list
* cleans up expired client entries
* frees the inode_ctx with destroy_mode set.
Note: This reaper thread is initialized only when features.cache_invalidation option
is enabled.
Change-Id: Iea2a63eb31b8e08d5709e7e090cf26fd13d01265
BUG: 1200267
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
Reviewed-on: http://review.gluster.org/10342
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'tests/include.rc')
0 files changed, 0 insertions, 0 deletions