From owner-cvs-src-old@FreeBSD.ORG Wed Sep 1 20:32:59 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 7070D10656FC for ; Wed, 1 Sep 2010 20:32:59 +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 5EEE18FC0C for ; Wed, 1 Sep 2010 20:32:59 +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 o81KWxHS033746 for ; Wed, 1 Sep 2010 20:32:59 GMT (envelope-from mdf@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o81KWx4S033745 for cvs-src-old@freebsd.org; Wed, 1 Sep 2010 20:32:59 GMT (envelope-from mdf@repoman.freebsd.org) Message-Id: <201009012032.o81KWx4S033745@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, 1 Sep 2010 20:32:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD 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, 01 Sep 2010 20:32:59 -0000 mdf 2010-09-01 20:32:47 UTC FreeBSD src repository Modified files: sys/kern sched_ule.c Log: SVN rev 212115 on 2010-09-01 20:32:47Z by mdf 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. sched_affinity code came from jhb@. MFC after: 2 weeks Revision Changes Path 1.274 +13 -11 src/sys/kern/sched_ule.c