blk_mq_reque...ypass_insert(9)
π blk_mq_reque...ypass_insert(9) β Kernel API Manual β¨
okay bestie, welcome to the Kernel API Manual, this is the page for blk_mq_reque...ypass_insert(9) and we're gonna get through it together π«Ά
πΈ NAME πΈ
blk_mq_request_bypass_insert β insert a request at dispatch list. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
void blk_mq_request_bypass_insert (struct request *rq , blk_insert_t
flags );
like, look at her. two args, no return value, main character energy π
π¦ ARGUMENTS π¦
rqβ pointer to the request you're inserting π literally just a pointer to the request, no cap.flagsβBLK_MQ_INSERT_*π the flag family, iykyk.
π DESCRIPTION π
okay so listen. this one is careful-only territory, fr fr β you should only use it carefully, and only when the caller knows we want to bypass a potential IO scheduler on the target device. like, actually knows. not guessing. not "it'll probably be fine" π the scheduler is right there and you're deliberately stepping around it, so be sure that's the move π
ngl this is giving "handle with care" energy β it's not the default path, it's the bypass path π§
π§ SEE ALSO π§
it lives in the kernel file ./block/blk-mq.c π and here's the whole friend group, all of them, every single one:
blk_mq_wait_quiesce_done(9)blk_mq_quiesce_queue(9)blk_update_request(9)blk_mq_complete_request(9)blk_mq_start_request(9)blk_execute_rq_nowait(9)blk_execute_rq(9)blk_mq_delay_run_hw_queue(9)blk_mq_run_hw_queue(9)blk_mq_run_hw_queues(9)blk_mq_delay_run_hw_queues(9)blk_mq_try_issue_directly(9)blk_mq_submit_bio(9)blk_insert_cloned_request(9)blk_rq_unprep_clone(9)blk_rq_prep_clone(9)blk_mq_destroy_queue(9)
β and that's the page!! this lil guy came out of ./block back in October 2026, so like, shoutout to that directory and that date, periodt π go forth and bypass responsibly bestie π
β¨
π¦ 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