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/locks.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xlators/features/locks/src/locks.h') diff --git a/xlators/features/locks/src/locks.h b/xlators/features/locks/src/locks.h index ab70064a9d9..476b9a83cd6 100644 --- a/xlators/features/locks/src/locks.h +++ b/xlators/features/locks/src/locks.h @@ -48,6 +48,9 @@ struct __posix_lock { fd_t *fd; call_frame_t *frame; + struct timeval blkd_time; /*time at which lock was queued into blkd list*/ + struct timeval granted_time; /*time at which lock was queued into active list*/ + /* These two together serve to uniquely identify each process across nodes */ @@ -73,6 +76,9 @@ struct __pl_inode_lock { call_frame_t *frame; + struct timeval blkd_time; /*time at which lock was queued into blkd list*/ + struct timeval granted_time; /*time at which lock was queued into active list*/ + /* These two together serve to uniquely identify each process across nodes */ @@ -111,6 +117,9 @@ struct __entry_lock { const char *basename; entrylk_type type; + struct timeval blkd_time; /*time at which lock was queued into blkd list*/ + struct timeval granted_time; /*time at which lock was queued into active list*/ + void *trans; pid_t client_pid; /* pid of client process */ uint64_t owner; -- cgit