From owner-cvs-src-old@FreeBSD.ORG Wed Sep 15 15:53:22 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 913721065675 for ; Wed, 15 Sep 2010 15:53:22 +0000 (UTC) (envelope-from mdf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 80FFB8FC1C for ; Wed, 15 Sep 2010 15:53:22 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o8FFrMbX004087 for ; Wed, 15 Sep 2010 15:53:22 GMT (envelope-from mdf@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8FFrMd3004086 for cvs-src-old@freebsd.org; Wed, 15 Sep 2010 15:53:22 GMT (envelope-from mdf@repoman.freebsd.org) Message-Id: <201009151553.o8FFrMd3004086@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to mdf@repoman.freebsd.org using -f From: Matthew D Fleming Date: Wed, 15 Sep 2010 15:53:05 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/kern sched_ule.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2010 15:53:22 -0000 mdf 2010-09-15 15:53:05 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern sched_ule.c Log: SVN rev 212666 on 2010-09-15 15:53:05Z by mdf MFC r212115: Fix a bug with sched_affinity() where it checks td_pinned of another thread in a racy manner, which can lead to attempting to migrate a thread that is pinned to a CPU. Instead, have sched_switch() determine which CPU a thread should run on if the current one is not allowed. KASSERT in sched_bind() that the thread is not yet pinned to a CPU. KASSERT in sched_switch() that only migratable threads or those moving due to a sched_bind() are changing CPUs. Note that this is direct commit as ipi_cpu() only exists in CURRENT. Revision Changes Path 1.257.2.10 +13 -11 src/sys/kern/sched_ule.c