Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Nov 2010 18:34:31 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r214682 - head/sys/kern
Message-ID:  <201011021834.oA2IYVIS075504@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Nov  2 18:34:31 2010
New Revision: 214682
URL: http://svn.freebsd.org/changeset/base/214682

Log:
  Tweak the waitchannel messages for the dead lock detection kthread.  Use
  a shorter message (userland generally only sees the first 6 to 8
  characters) when waiting for the allproc lock.  Use "-" when idle to math
  the behavior of other kthreads.
  
  Reviewed by:	attilio
  MFC after:	1 week

Modified:
  head/sys/kern/kern_clock.c

Modified: head/sys/kern/kern_clock.c
==============================================================================
--- head/sys/kern/kern_clock.c	Tue Nov  2 17:56:16 2010	(r214681)
+++ head/sys/kern/kern_clock.c	Tue Nov  2 18:34:31 2010	(r214682)
@@ -195,7 +195,7 @@ deadlkres(void)
 		panic("%s: possible deadlock detected on allproc_lock\n",
 				    __func__);
 			tryl++;
-			pause("allproc_lock deadlkres", sleepfreq * hz);
+			pause("allproc", sleepfreq * hz);
 			continue;
 		}
 		tryl = 0;
@@ -288,7 +288,7 @@ deadlkres(void)
 		sx_sunlock(&allproc_lock);
 
 		/* Sleep for sleepfreq seconds. */
-		pause("deadlkres", sleepfreq * hz);
+		pause("-", sleepfreq * hz);
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011021834.oA2IYVIS075504>