Received: by mail.netbsd.org (Postfix, from userid 605) id 2250584DFB; Wed, 26 Dec 2018 20:08:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 2D2BE84DF6 for ; Wed, 26 Dec 2018 20:08:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id trlnPgHkeGDv for ; Wed, 26 Dec 2018 20:08:22 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id A1E0284D1F for ; Wed, 26 Dec 2018 20:08:22 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9A60FFB16; Wed, 26 Dec 2018 20:08:22 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 26 Dec 2018 20:08:22 +0000 From: "Jason R Thorpe" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20181226200822.9A60FFB16@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jason R Thorpe" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: thorpej Date: Wed Dec 26 20:08:22 UTC 2018 Modified Files: src/sys/kern: kern_threadpool.c Log Message: Use uint64_t for the unbound and per-cpu thread pool ref counts; they're always manipulated under a lock. Rather than bother returning EBUSY, just assert that the ref count never overlows (if it ever does, you have bigger problems). To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/kern/kern_threadpool.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.