throtl_sche...ext_dispatch(9)
β¨ NAME β¨
okay bestie, welcome to the Kernel API Manual page for throtl_schedule_next_dispatch β schedule the next dispatch cycle, periodt π
πΈ SYNOPSIS πΈ
bool throtl_schedule_next_dispatch (struct throtl_service_queue *sq ,
bool force );
π ARGUMENTS π
sqβ theservice_queueweβre scheduling dispatch for, bestie β¨forceβ force scheduling, no cap π
π¦ DESCRIPTION π¦
okay so the whole move here is to arm sq->pending_timer so that the next dispatch cycle starts on the dispatch time of the first pending child. The return vibe is true if either timer is armed or thereβs no pending child left. Itβs false if the current dispatch window is still open and the caller should continue dispatching. iykyk π«Ά
If force is true, the dispatch timer is always scheduled and this function is guaranteed to return true. This is the one for when the caller canβt dispatch itself and needs to invoke pending_timer unconditionally. π
π¨ note note note: forced scheduling is likely to induce a short delay before dispatch starts even if sq->first_pending_disptime is not in the future, and thus it shouldnβt be used in hot paths. periodt π
π SEE ALSO π
Kernel file ./block/blk-throttle.c plus the whole friend group:
sq_to_tg(9)sq_to_td(9)throtl_log(9)throtl_qnode_add_bio(9)throtl_peek_queued(9)throtl_pop_queued(9)throtl_add_bio_tg(9)throtl_pending_timer_fn(9)blk_throtl_dispatch_work_fn(9)
source/version + date tea: ./block, October 2026, and the page label is throtl_sche...ext_dispatch(9) β bye bestie, 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