cgroup_writeback_umount(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Hey bestie πŸ’– welcome to cgroup_writeback_umount(9) from the Kernel API Manual β€” this one is lowkey a β€œwait for the workers to finish” situation, and it’s giving very patient-main-character energy πŸŽ€

✨ NAME ✨

cgroup_writeback_umount β€” wait for in-flight inode wb switches on @sb πŸ¦‹

🌸 SYNOPSIS 🌸

void cgroup_writeback_umount (struct super_block *sb );

πŸ’… ARGUMENTS πŸ’…

  • sb β€” target super_block πŸ‘‘

πŸ”₯ DESCRIPTION πŸ”₯

Okay so this function waits until every inode wb switch that already passed the SB_ACTIVE check on this superblock has been completed by the worker. No cap, that’s the whole vibe: let the already-started switches finish 🫢

Since SB_ACTIVE is cleared before this is called, no new switches can start for sb, so s_isw_nr_in_flight will monotonically drop to zero. It’s literally a one-way trip down to zero, and we love that for it πŸ“‰

🌈 SEE ALSO 🌈

Kernel file ./fs/fs-writeback.c β€” go check out these iconic neighbors πŸ‘€βœ¨


mwah πŸ’‹ β€” source/version ./fs, date October 2026.

πŸ“¦ where this page comes from