Deep DivesWhat PREEMPT_RT Changes: Sleeping Spinlocks (Part 1)
Under PREEMPT_RT spinlock_t becomes an rtmutex. Sleeping spinlocks explain why _irq does nothing and why unlock order matters.
A multi-part series, in reading order. Start with Part 1.
← All series · 7 parts, in reading order
Deep DivesUnder PREEMPT_RT spinlock_t becomes an rtmutex. Sleeping spinlocks explain why _irq does nothing and why unlock order matters.
Deep DivesPriority inheritance in the Linux rtmutex assigns, never increments. The two waiter trees, the chain walk, max_lock_depth, and why semaphores get none.
Deep DivesOn PREEMPT_RT, local_lock and migrate_disable split one job in two: the macro expansions, the kernel's case against migration disabling, and the traps.
Deep DivesOn PREEMPT_RT, forced interrupt threading moves your handler into a thread, forces IRQF_ONESHOT, and can split one driver into two threads at…
Deep DivesOn PREEMPT_RT, preemptible softirqs run in task context and local_bh_disable() is a lock, not a counter. Linux 6.18 then dropped that lock…
Deep DivesThe ktimers thread moved timer softirq work out of ksoftirqd on PREEMPT_RT. How it works, which kernels have it, and what it…
Deep DivesOn PREEMPT_RT, RCU priority boosting is on by default and the kthreads it promotes run at SCHED_FIFO 1. Where that number comes…
The best of our kernel and embedded Linux writing, a few emails a month. No spam.
// 1,200+ embedded engineers already read it
We email occasionally and never share your address.