From ba20df9f1a218177e7c7dcc15a11143183d28243 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Thu, 29 Sep 2011 16:44:40 +0530 Subject: locks: dump client pid and time of blocking/granting. Change-Id: Icaa919f3009fb70f6af9b95fceaf800f3beca447 BUG: 3662 Reviewed-on: http://review.gluster.com/532 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/locks/src/entrylk.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/features/locks/src/entrylk.c') diff --git a/xlators/features/locks/src/entrylk.c b/xlators/features/locks/src/entrylk.c index c3f40829b..886a30b0e 100644 --- a/xlators/features/locks/src/entrylk.c +++ b/xlators/features/locks/src/entrylk.c @@ -349,6 +349,7 @@ __lock_name (pl_inode_t *pinode, const char *basename, entrylk_type type, } + gettimeofday (&lock->blkd_time, NULL); list_add_tail (&lock->blocked_locks, &dom->blocked_entrylks); gf_log (this->name, GF_LOG_TRACE, @@ -370,6 +371,7 @@ __lock_name (pl_inode_t *pinode, const char *basename, entrylk_type type, lock->frame = frame; lock->this = this; + gettimeofday (&lock->blkd_time, NULL); list_add_tail (&lock->blocked_locks, &dom->blocked_entrylks); gf_log (this->name, GF_LOG_TRACE, @@ -384,6 +386,7 @@ __lock_name (pl_inode_t *pinode, const char *basename, entrylk_type type, switch (type) { case ENTRYLK_WRLCK: + gettimeofday (&lock->granted_time, NULL); list_add_tail (&lock->domain_list, &dom->entrylk_list); break; -- cgit