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/common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/features/locks/src/common.c') diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c index 4e089a0ee36..4b6a810fde8 100644 --- a/xlators/features/locks/src/common.c +++ b/xlators/features/locks/src/common.c @@ -533,6 +533,11 @@ posix_lock_to_flock (posix_lock_t *lock, struct gf_flock *flock) static void __insert_lock (pl_inode_t *pl_inode, posix_lock_t *lock) { + if (lock->blocked) + gettimeofday (&lock->blkd_time, NULL); + else + gettimeofday (&lock->granted_time, NULL); + list_add_tail (&lock->list, &pl_inode->ext_list); return; -- cgit