Module Name: src Committed By: pooka Date: Mon Mar 7 21:57:15 UTC 2011
Modified Files: src/lib/librumpuser: rumpuser_sp.c Log Message: use nwork-adjusted amount of idle workers to decide is they are truly idle. To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43 src/lib/librumpuser/rumpuser_sp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/librumpuser/rumpuser_sp.c diff -u src/lib/librumpuser/rumpuser_sp.c:1.42 src/lib/librumpuser/rumpuser_sp.c:1.43 --- src/lib/librumpuser/rumpuser_sp.c:1.42 Tue Feb 15 16:10:41 2011 +++ src/lib/librumpuser/rumpuser_sp.c Mon Mar 7 21:57:15 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_sp.c,v 1.42 2011/02/15 16:10:41 pooka Exp $ */ +/* $NetBSD: rumpuser_sp.c,v 1.43 2011/03/07 21:57:15 pooka Exp $ */ /* * Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: rumpuser_sp.c,v 1.42 2011/02/15 16:10:41 pooka Exp $"); +__RCSID("$NetBSD: rumpuser_sp.c,v 1.43 2011/03/07 21:57:15 pooka Exp $"); #include <sys/types.h> #include <sys/atomic.h> @@ -623,7 +623,7 @@ for (;;) { pthread_mutex_lock(&sbamtx); - if (__predict_false(idleworker >= rumpsp_idleworker)) { + if (__predict_false(idleworker - nwork >= rumpsp_idleworker)) { nworker--; pthread_mutex_unlock(&sbamtx); break;