blk_cgroup_congested(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to blk_cgroup_congested(9) from the Kernel API Manual β€” the whole vibe here is answering: is the current task in a throttled blkcg? πŸ‘€πŸ’…

✨ SYNOPSIS ✨

bool blk_cgroup_congested (void );

🫢 ARGUMENTS 🫢

  • void β€” no arguments, bestie. zero. nada. the function takes nothing πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so this one gets called from mm hot paths, where the answer is almost always false 😭. because of that, the move is to keep that case down to a load and a branch β€” super cheap, no drama β€” and only walk the hierarchy out of line when something in the system really is throttled. it's giving optimized-for-the-common-case, fr fr ✨

πŸ¦‹ RETURN πŸ¦‹

  • true β€” if the current task's blkcg or any of its ancestors is throttled πŸ‘‘
  • false β€” otherwise πŸ’€

🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/blk-cgroup.h β€” go read it, iykyk πŸ“šπŸ’œ

okay that's the whole page, bestie 🫢 this cutie comes from ./include/linux, dated October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from