pub(crate) static SCHED_IDENTITY: RwLock<SchedIdentity>Expand description
Identity maps — rank 2 (write) / 2R (read) in the total lock order.
SCHED_IDENTITY write is acquired after GLOBAL_SCHED_STATE and before
BLOCKED_TASKS or LOCAL_SCHEDULERS[cpu].
SCHED_IDENTITY read is observational only: copy the result, release,
then begin any mutating operation. No scheduler lock may be acquired
while holding the read guard.
Upgraded to RwLock so that concurrent readers (getpid, getpgid,
get_task_by_pid) do not serialize.