blk_rq_passthrough_stats(9)
๐ blk_rq_passthrough_stats(9) โ the manual page, but make it make sense
okay so you found blk_rq_passthrough_stats in section 9 of the Kernel API Manual โ bestie, welcome, this one is short and sweet and honestly kind of a vibe. Let's get into it ๐ซถ
โจ NAME โจ
blk_rq_passthrough_stats โ check if this request should account stats ๐งฎ
Like literally, it's a yes/no vibe check on whether a request gets to be counted.
๐ธ SYNOPSIS ๐ธ
bool blk_rq_passthrough_stats (struct request *rq , struct request_queue
*q );
That's it. Two args, one bool out. Clean. Iconic. No cap. ๐
๐ ARGUMENTS ๐
rqโ the request you're checking ๐ (you know, the one you're wondering about)qโ the queue that's accumulating the stats ๐ (she's the one doing the counting)
๐ฆ DESCRIPTION ๐ฆ
Okay so here's the one (1) thing you need to internalize, and it's lowkey important:
Note,qdoes not necessarily need to be therequest_queuethat providesrq. ๐ซ
Read that again. I'll wait. q and rq are not required to be each other's people โ the queue collecting the stats doesn't have to be the same queue that handed you the request. So don't go assuming they're a matched set, bestie. That's the whole trick. ๐
โญ RETURN โญ
Returns true if stats should be accounted. โ
That's the entire answer. true = count it. No ambiguity, no cliffhanger, we love a straightforward return. ๐
๐ SEE ALSO ๐
Kernel file ./include/linux/blk-mq.h, plus the whole friend group:
enum blk_eh_timer_return(9)struct blk_mq_hw_ctx(9)struct blk_mq_queue_map(9)enum hctx_type(9)struct blk_mq_tag_set(9)struct blk_mq_queue_data(9)struct blk_mq_ops(9)blk_mq_rq_state(9)blk_mq_add_to_batch(9)blk_mq_rq_from_pdu(9)blk_mq_rq_to_pdu(9)blk_rq_nr_bvec(9)
Go read those if you're nosy. I support it. ๐
and that's the page!! ๐ sourced from ./include/linux, dated October 2026 โ mwah, go forth and count your stats correctly, 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