Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Nov 2010 18:46:09 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r215044 - stable/8/sys/kern
Message-ID:  <201011091846.oA9Ik96m035230@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Nov  9 18:46:09 2010
New Revision: 215044
URL: http://svn.freebsd.org/changeset/base/215044

Log:
  MFC 214682:
  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 match
  the behavior of other kthreads.

Modified:
  stable/8/sys/kern/kern_clock.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/kern/kern_clock.c
==============================================================================
--- stable/8/sys/kern/kern_clock.c	Tue Nov  9 18:43:59 2010	(r215043)
+++ stable/8/sys/kern/kern_clock.c	Tue Nov  9 18:46:09 2010	(r215044)
@@ -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?201011091846.oA9Ik96m035230>