nfsd4_cancel_copy_by_sb(9)
π nfsd4_cancel_copy_by_sb(9) π
okay so bestie, welcome to the Kernel API Manual entry for nfsd4_cancel_copy_by_sb β yes that name is a mouthful, no I will not be shortening it, and yes it's giving very much "function that knows what it wants." π
β¨ NAME β¨
nfsd4_cancel_copy_by_sb β cancels the async copy operations happening on @sb. that's the whole vibe. it comes in, it shuts things down, it leaves. π
πΈ SYNOPSIS πΈ
void nfsd4_cancel_copy_by_sb (struct net *net , struct super_block *sb );
literally just two args and no return value. it returns void, meaning it does not report back to you. it's not ghosting you, it's just built different. π¦
π ARGUMENTS π
netβ the net namespace that's holding the copy operations. think of it as the group chat these copies are living in. π₯sbβ the targeted superblock. the main character of this whole operation, honestly. π
π«Ά CONTEXT π«Ά
okay this part is serious, so like, pay attention bestie. π
The caller must hold nfsd_mutex with NFSD_NET_UP set. not optional. not "eh probably fine." this is the rule.
why? because outside that window, nn->conf_id_hashtbl is unallocated or freed β and if you go walking through it anyway, you're gonna dereference a NULL or dangling pointer. and that is not the slay you think it is. that's a crash. π
so fr fr: holdnfsd_mutex, haveNFSD_NET_UPset, or don't call this. no cap. π
π SEE ALSO π
- Kernel file
./fs/nfsd/nfs4proc.c set_change_info(9)nfsd4_has_active_async_copies(9)nfsd4_async_copy_reaper(9)nfsd4_do_async_copy(9)nfsd4_spo_must_allow(9)
the whole async copy friend group honestly β go read them, they all ate. β
and that's the page!! mwah π this one's from ./fs/nfsd, dated October 2026, and it's living in the Kernel API Manual β sign-off complete, go touch some superblocks, ily, bye π§π
π¦ 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