From owner-cvs-src-old@FreeBSD.ORG Wed Sep 15 15:56:13 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 72C561065670 for ; Wed, 15 Sep 2010 15:56:13 +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 625778FC1A for ; Wed, 15 Sep 2010 15:56:13 +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 o8FFuD2x004319 for ; Wed, 15 Sep 2010 15:56:13 GMT (envelope-from mdf@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8FFuDVS004318 for cvs-src-old@freebsd.org; Wed, 15 Sep 2010 15:56:13 GMT (envelope-from mdf@repoman.freebsd.org) Message-Id: <201009151556.o8FFuDVS004318@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:55:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_7 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:56:13 -0000 mdf 2010-09-15 15:55:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/kern sched_ule.c Log: SVN rev 212667 on 2010-09-15 15:55:58Z 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.214.2.15 +14 -12 src/sys/kern/sched_ule.c