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 j...@.
>   
>   MFC after:  2 weeks

Cool, I guess this fixed it in your tests then?

-- 
John Baldwin
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to