From e2685adcb71b30621e34905584910390e0b248e1 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Fri, 27 May 2011 01:17:12 +0000 Subject: print the owner and the transport for the blocked locks in server statedump Signed-off-by: Raghavendra Bhat Signed-off-by: Anand Avati BUG: 2949 (self-heal hangs) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2949 --- xlators/features/locks/src/posix.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c index c0f8b5dfe..d4663ac8d 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); -- cgit