Skip to main content

GLOBAL_SCHED_STATE

Static GLOBAL_SCHED_STATE 

Source
pub(crate) static GLOBAL_SCHED_STATE: SpinLock<Option<GlobalSchedState>>
Expand description

Global scheduler state — rank 1 (root) in the total lock order.

This is the root lock. It may precede all other scheduler locks but must never be acquired from a path that already holds a LOCAL, BLOCKED, or IDENTITY lock.

Protects: all_tasks, task_cpu, zombies, wake_deadlines, and the global class_table. Per-CPU run queues and current-task tracking live in LOCAL_SCHEDULERS (rank 4). Blocked tasks are in BLOCKED_TASKS (rank 3). Identity maps are in SCHED_IDENTITY (rank 2).