nfsd_file_di...list_delayed(9)
πΈ nfsd_file_di...list_delayed(9) πΈ
okay so you found your way into the Kernel API Manual bestie, welcome, this is the nfsd_file_dispose_list_delayed page and honestly? she's a lil baddie with a very specific job π
β¨ NAME β¨
nfsd_file_dispose_list_delayed β queue dead files for nfsd thread disposal ποΈβ¨
π¦ SYNOPSIS π¦
void nfsd_file_dispose_list_delayed (struct list_head *dispose );
like... that's the whole signature. no cap, that's it π«Ά
π ARGUMENTS π
disposeβ the list ofnfsd_filesto be disposed π lowkey the main character here, everything goes through her
π DESCRIPTION π
So here's the vibe: this function transfers each file to the dispose list in its nfsd_net, then wakes an nfsd thread to do the actual close. yes, an actual nfsd thread, doing the actual work, not some random background lurker π₯
The whole point β and this is the iconic part β is that it keeps the cost of fput in the nfsd threads rather than in the shrinker or GC worker. it's giving "delegation queen" π
β οΈ okay important, don't skip this: all callers must holdnfsd_gc_lockπ that's so thatnfsd_file_cache_shutdown_netcan synchronize against them before draining the per-net dispose list. this guaranteesnf_netis still live when we callnet_generic. miss that lock and you're on your own, bestie π
π SEE ALSO π
Kernel file ./fs/nfsd/filecache.c β go read her sisters, they're all linked up:
nfsd_file_check_write_error(9)nfsd_file_put(9)nfsd_file_put_local(9)nfsd_file_file(9)nfsd_file_net_dispose(9)nfsd_file_lru_cb(9)nfsd_file_cond_queue(9)nfsd_file_queue_for_close(9)nfsd_file_close_inode(9)nfsd_file_close_inode_sync(9)nfsd_file_close_export(9)__nfsd_file_cache_purge(9)nfsd_file_cache_purge(9)nfsd_file_is_cached(9)nfsd_file_acquire_gc(9)nfsd_file_acquire(9)nfsd_file_acquire_local(9)nfsd_file_acquire_opened(9)nfsd_file_acquire_dir(9)nfsd_fsnotify_recalc_mask(9)
and that's the page!! sourced straight from ./fs/nfsd, dated October 2026, and it's still titled nfsd_file_di...list_delayed(9) because the man page gods truncate the name and honestly we respect the mystery π§π ily, go hold that nfsd_gc_lock π«Άβ¨
π¦ 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