summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-05-27 01:17:12 +0000
committerAnand Avati <avati@gluster.com>2011-06-19 20:41:16 -0700
commite2685adcb71b30621e34905584910390e0b248e1 (patch)
treefc3a7823ca3905fded9615f51f6906b8e1da0789 /xlators/features/locks
parent4c81f6268d254f452b861bcd63608982c3ddb560 (diff)
print the owner and the transport for the blocked locks in server statedump
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2949 (self-heal hangs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2949
Diffstat (limited to 'xlators/features/locks')
-rw-r--r--xlators/features/locks/src/posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index c0f8b5dfe07..d4663ac8d3f 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -1573,9 +1573,11 @@ __dump_entrylks (pl_inode_t *pl_inode)
gf_proc_dump_build_key(key,
"xlator.feature.locks.lock-dump.domain.entrylk",
"entrylk[%d](BLOCKED)",count );
- snprintf (tmp, 256," %s on %s state = Blocked",
+ snprintf (tmp, 256," %s on %s owner=%llu, transport=%p,"
+ " state = Blocked",
lock->type == ENTRYLK_RDLCK ? "ENTRYLK_RDLCK" :
- "ENTRYLK_WRLCK", lock->basename);
+ "ENTRYLK_WRLCK", lock->basename,
+ (unsigned long long) lock->owner, lock->trans);
gf_proc_dump_write(key, tmp);