summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall/src/upcall-messages.h
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2015-04-22 15:48:52 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-05-04 16:27:41 -0700
commit86fb4828f5566e455a12ac2207999120275b61a7 (patch)
tree8d5806d43b1f16024dc38f31847a76b2c07a879c /xlators/features/upcall/src/upcall-messages.h
parentf8bb9ac26aad8c0068bcc45a34ecb4a73cc06e7a (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 'xlators/features/upcall/src/upcall-messages.h')
-rw-r--r--xlators/features/upcall/src/upcall-messages.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/features/upcall/src/upcall-messages.h b/xlators/features/upcall/src/upcall-messages.h
index c8483f16528..7b004d678c3 100644
--- a/xlators/features/upcall/src/upcall-messages.h
+++ b/xlators/features/upcall/src/upcall-messages.h
@@ -56,6 +56,7 @@
* @recommendedaction None
*/
#define UPCALL_MSG_NO_MEMORY (GLFS_COMP_BASE_UPCALL + 1)
+#define UPCALL_MSG_INTERNAL_ERROR (GLFS_COMP_BASE_UPCALL + 2)
#define glfs_msg_end_x GLFS_MSGID_END, "Invalid: End of messages"