cgroup_writeback_umount(9)
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β targetsuper_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 πβ¨
inode_io_list_move_locked(9)wb_wait_for_completion(9)inode_cgwb_move_to_attached(9)locked_inode_to_wb_and_lock_list(9)inode_to_wb_and_lock_list(9)inode_switch_wbs(9)cleanup_offline_cgwb(9)wbc_attach_and_unlock_inode(9)wbc_attach_fdatawrite_inode(9)wbc_detach_inode(9)wbc_account_cgroup_owner(9)wb_split_bdi_pages(9)bdi_split_work_to_wbs(9)cgroup_writeback_by_id(9)wb_start_background_writeback(9)filemap_dontcache_kick_writeback(9)__mark_inode_dirty(9)writeback_inodes_sb_nr(9)writeback_inodes_sb(9)try_to_writeback_inodes_sb(9)sync_inodes_sb(9)write_inode_now(9)sync_inode_metadata(9)
mwah π β source/version ./fs, date October 2026.
π¦ 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