Date: Wed, 1 Sep 2010 17:31:12 -0400 From: John Baldwin <jhb@freebsd.org> To: Matthew D Fleming <mdf@freebsd.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r212115 - head/sys/kern Message-ID: <201009011731.12499.jhb@freebsd.org> In-Reply-To: <201009012032.o81KWmu5080032@svn.freebsd.org> References: <201009012032.o81KWmu5080032@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, September 01, 2010 4:32:48 pm Matthew D Fleming wrote: > Author: mdf > Date: Wed Sep 1 20:32:47 2010 > New Revision: 212115 > URL: http://svn.freebsd.org/changeset/base/212115 > > Log: > 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 Cool, I guess this fixed it in your tests then? -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009011731.12499.jhb>