Skip to content
Commit cfb87626 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

SMP: There were certain conditions that we must avoid by preventing releasing...

SMP: There were certain conditions that we must avoid by preventing releasing the pending tasks while withn a critical section.  But this logic was incomplete; there was no logic to prevent other CPUs from adding new, running tasks while on CPU is in a critical section.

This commit corrects this.  This is matching logic in sched_addreadytorun to avoid starting new tasks within the critical section (unless the CPU is the holder of the lock).  The holder of the IRQ lock must be permitted to do whatever it needs to do.
parent 675d684a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment