Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Oct 2017 10:04:43 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r324799 - stable/11/sys/kern
Message-ID:  <201710201004.v9KA4ha3078078@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Oct 20 10:04:43 2017
New Revision: 324799
URL: https://svnweb.freebsd.org/changeset/base/324799

Log:
  MFC r324445:
  When showing the sleepqueues from the in-kernel debugger,
  properly dump all the sleepqueues and not just the first one
  
  History:
  It appears that in the commit which introduced the code,
  r165272, the array indexes of "sq_blocked[0]" and "td_name[i]"
  were interchanged. In r180927 "td_name[i]" was corrected to
  "td_name[0]", but "sq_blocked[0]" was left unchanged.
  
  PR:		222624
  Discussed with:	kmacy @
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/kern/subr_sleepqueue.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/subr_sleepqueue.c
==============================================================================
--- stable/11/sys/kern/subr_sleepqueue.c	Fri Oct 20 10:01:21 2017	(r324798)
+++ stable/11/sys/kern/subr_sleepqueue.c	Fri Oct 20 10:04:43 2017	(r324799)
@@ -1435,7 +1435,7 @@ found:
 		if (TAILQ_EMPTY(&sq->sq_blocked[i]))
 			db_printf("\tempty\n");
 		else
-			TAILQ_FOREACH(td, &sq->sq_blocked[0],
+			TAILQ_FOREACH(td, &sq->sq_blocked[i],
 				      td_slpq) {
 				db_printf("\t%p (tid %d, pid %d, \"%s\")\n", td,
 					  td->td_tid, td->td_proc->p_pid,



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