Date: Wed, 1 Sep 2010 20:32:47 +0000 (UTC) From: Matthew D Fleming <mdf@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern sched_ule.c Message-ID: <201009012032.o81KWx4S033745@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009012032.o81KWx4S033745>
