synchronize_rcu_expedited(9)
π synchronize_rcu_expedited(9) π
okay bestie, welcome to the Kernel API Manual page for synchronize_rcu_expedited(9) β this one is giving βbrute-force grace periodβ energy, and weβre gonna get into it β¨
πΈ NAME πΈ
synchronize_rcu_expeditedβ Brute-force RCU grace period π«Ά
π¦ SYNOPSIS π¦
void synchronize_rcu_expedited (void );
π ARGUMENTS π
voidβ no arguments. Zero. Nada. It takes no arguments, periodt π
π₯ DESCRIPTION π₯
So the whole vibe is: wait for an RCU grace period, but expedite it. The basic idea is to IPI all non-idle non-nohz online CPUs. The IPI handler checks whether the CPU is in an RCU critical section, and if so, it sets a flag that causes the outermost rcu_read_unlock to report the quiescent state for RCU-preempt or asks the scheduler for help for RCU-sched. On the other hand, if the CPU is not in an RCU read-side critical section, the IPI handler reports the quiescent state immediately π
And like, yes, this is a great improvement over previous expedited implementations. But it is still unfriendly to real-time workloads, so it is thus not recommended for any sort of common-case code. In fact, if you are using synchronize_rcu_expedited in a loop, please restructure your code to batch your updates, and then use a single synchronize_rcu instead π
bestie, this has the same semantics as (but is more brutal than) synchronize_rcu. Not me warning you dramatically, but also yes, literally warning you dramatically π
π SEE ALSO π
- Kernel file:
./kernel/rcu/tree_exp.h start_poll_synchronize_rcu_expedited(9)start_poll_synchronize_rcu_expedited_full(9)cond_synchronize_rcu_expedited(9)cond_synchronize_rcu_expedited_full(9)
okay thatβs the page, bestie π cute little sign-off: source/version is ./kernel/rcu, dated October 2026, for synchronize_rcu_expedited(9) β mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms