mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-02 17:08:56 +00:00
915cf38b11
- Close a small race condition. The sched_lock mutex protects p->p_stat as well as the run queues. Another CPU could change p_stat of the process while we are waiting for the lock, and we would end up scheduling a process that isn't runnable.