Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2018 21:27:17 +0000 (UTC)
From:      Jeff Roberson <jeff@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329672 - head/sys/kern
Message-ID:  <201802202127.w1KLRHhi083755@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jeff
Date: Tue Feb 20 21:27:17 2018
New Revision: 329672
URL: https://svnweb.freebsd.org/changeset/base/329672

Log:
  Fix the broken subqueue assignment for the cleanq.
  
  Reported by:	pho
  Tested by:	pho
  Sponsored by:	Netflix, Dell/EMC Isilon

Modified:
  head/sys/kern/vfs_bio.c

Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c	Tue Feb 20 21:23:01 2018	(r329671)
+++ head/sys/kern/vfs_bio.c	Tue Feb 20 21:27:17 2018	(r329672)
@@ -1717,7 +1717,7 @@ bd_init(struct bufdomain *bd)
 
 	domain = bd - bdclean;
 	bd->bd_cleanq = &bd->bd_subq[mp_ncpus];
-	bq_init(bd->bd_cleanq, QUEUE_CLEAN, -1, "bufq clean lock");
+	bq_init(bd->bd_cleanq, QUEUE_CLEAN, mp_ncpus, "bufq clean lock");
 	for (i = 0; i <= mp_maxid; i++)
 		bq_init(&bd->bd_subq[i], QUEUE_CLEAN, i,
 		    "bufq clean subqueue lock");



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