From owner-cvs-all@FreeBSD.ORG Sat Jun 7 17:47:34 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8984C37B401; Sat, 7 Jun 2003 17:47:34 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25B3E43FAF; Sat, 7 Jun 2003 17:47:34 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h580lX0U002762; Sat, 7 Jun 2003 17:47:33 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h580lXk2002761; Sat, 7 Jun 2003 17:47:33 -0700 (PDT) Message-Id: <200306080047.h580lXk2002761@repoman.freebsd.org> From: Jeff Roberson Date: Sat, 7 Jun 2003 17:47:33 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern sched_ule.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 00:47:34 -0000 jeff 2003/06/07 17:47:33 PDT FreeBSD src repository Modified files: sys/kern sched_ule.c Log: - When a new thread is added to a kseq the load is incremented prior to adding it to the nice tables. Therefore, in kseq_add_nice, we should keep in mind that the load will be 1 if we are the only thread, and not 0. - Assert that the sched lock is held in all the appropriate places. - Increase the scope of the sched lock in sched_pctcpu_update(). - Hold the sched lock in sched_runnable(). It is not held by the caller. Revision Changes Path 1.35 +20 -5 src/sys/kern/sched_ule.c