blk_flush_complete_seq(9)
π blk_flush_complete_seq(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function with a big job and she's literally the closer of the flush-sequence friend group π
π NAME π
blk_flush_complete_seq β complete the flush sequence. that's it, that's the whole vibe π«Ά
β¨ SYNOPSIS β¨
void blk_flush_complete_seq (struct request *rq , struct blk_flush_queue
*fq , unsigned int seq , blk_status_t error );
no cap, she returns void β no little gift back, just vibes and side effects πΈ
π¦ ARGUMENTS π¦
rqβ the PREFLUSH/FUA request that's being sequenced. she's the main character here πfqβ the flush queue. literally the group chat she lives in π¬seqβ the sequences to complete, aka a mask ofREQ_FSEQ_*. and yes, it can be zero β zero is a valid mask, we don't shame her πerrorβ whether an error occurred. ablk_status_t, so she's got range π
π DESCRIPTION π
so rq just completed the seq part of its flush sequence (slay π
). this function records that completion and then triggers the next step β like, she logs the W and then hits "next" for the whole pipeline π₯
π CONTEXT π
gets called with the spinlock held, specifically:
spin_lock_irq(fq->mq_flush_lock)
so yeah, you're already inside the lock bestie, don't go grabbing it again π that's an own-goal fr fr
πΈ SEE ALSO πΈ
- the kernel file
./block/blk-flush.cβ the source of truth, go read her π blk_kick_flush(9)β her bestie who kicks things off βblkdev_issue_flush(9)β the one who actually issues the flush π§
ok and one last thing β the lock in CONTEXT is not a suggestion, it's the whole assignment. hold it, do the work, carry on π
that's the page!! written up in ./block, dated October 2026, and she answers to the name blk_flush_complete_seq(9) β mwah, bye 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