Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2012 22:05:54 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240423 - head/sys/kern
Message-ID:  <201209122205.q8CM5sYF057145@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Wed Sep 12 22:05:54 2012
New Revision: 240423
URL: http://svn.freebsd.org/changeset/base/240423

Log:
  Tweak the commit message in case of panic for sleeping from threads
  with TDP_NOSLEEPING on.
  
  The current message has no informations on the thread and wchan
  involed, which may be useful in case where dumps have mangled dwarf
  informations.
  
  Reported by:    kib
  Reviewed by:	bde, jhb, kib
  MFC after:	1 week

Modified:
  head/sys/kern/subr_sleepqueue.c

Modified: head/sys/kern/subr_sleepqueue.c
==============================================================================
--- head/sys/kern/subr_sleepqueue.c	Wed Sep 12 21:03:48 2012	(r240422)
+++ head/sys/kern/subr_sleepqueue.c	Wed Sep 12 22:05:54 2012	(r240423)
@@ -297,7 +297,8 @@ sleepq_add(void *wchan, struct lock_obje
 
 	/* If this thread is not allowed to sleep, die a horrible death. */
 	KASSERT(!(td->td_pflags & TDP_NOSLEEPING),
-	    ("Trying sleep, but thread marked as sleeping prohibited"));
+	    ("%s: td %p to sleep on wchan %p with TDP_NOSLEEPING on",
+	    __func__, td, wchan));
 
 	/* Look up the sleep queue associated with the wait channel 'wchan'. */
 	sq = sleepq_lookup(wchan);



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