cee25393d8
- Fix P15-8-init-cycle-detection.patch: replace visiting+error with seen+silent-skip to eliminate 11 false-positive 'dependency cycle detected' errors on shared deps - Fix P0-daemon-fix-init-notify-unwrap.patch: remove eprintln! for missing INIT_NOTIFY (expected for oneshot_async services, ~7 daemons affected) - Fix driver-manager hotplug loop: add PERMANENTLY_SKIPPED static set shared between hotplug handler and DriverConfig::probe() to stop infinite re-probing of Fatal/NotSupported/deferred-exhausted device+driver pairs (e.g. ided) - Fix driver-manager log_timeline: suppress repeated EPIPE/ENOENT errors with AtomicI32 dedup and AtomicBool one-shot guards for boot timeline JSON - Add driver-manager SIGTERM handler, ACPI bus registration, --status mode, driver reap loop, graceful shutdown, and reduced deferred retries (30→3)
32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
--- a/src/percpu.rs
|
|
+++ b/src/percpu.rs
|
|
@@ -21,7 +21,7 @@
|
|
cpu_set::{LogicalCpuId, MAX_CPU_COUNT},
|
|
cpu_stats::{CpuStats, CpuStatsData},
|
|
ptrace::Session,
|
|
- sync::{mcs::McsNode, CleanLockToken},
|
|
+ sync::{mcs::McsNode, mcs::McsRawLock, CleanLockToken},
|
|
syscall::debug::SyscallDebugInfo,
|
|
};
|
|
|
|
@@ -66,6 +66,11 @@
|
|
/// `u8::MAX` means unknown (no SRAT or APIC ID not listed).
|
|
pub numa_node: Cell<u8>,
|
|
|
|
+ /// Pointer to the MCS lock this CPU is currently spinning on (for transitive PI).
|
|
+ /// `null` when not waiting on any lock. Set in McsRawLock::acquire() before
|
|
+ /// entering the spin loop, cleared upon acquisition.
|
|
+ pub waiting_on_lock: AtomicPtr<McsRawLock>,
|
|
+
|
|
// TODO: Put mailbox queues here, e.g. for TLB shootdown? Just be sure to 128-byte align it
|
|
// first to avoid cache invalidation.
|
|
pub profiling: Option<&'static crate::profiling::RingBuffer>,
|
|
@@ -360,6 +365,7 @@
|
|
pi_donated_prio: AtomicU32::new(u32::MAX),
|
|
current_prio: Cell::new(39),
|
|
numa_node: Cell::new(u8::MAX),
|
|
+ waiting_on_lock: AtomicPtr::new(core::ptr::null_mut()),
|
|
ptrace_flags: Cell::new(PtraceFlags::empty()),
|
|
ptrace_session: RefCell::new(None),
|
|
inside_syscall: Cell::new(false),
|