nfsd4_cancel_copy_by_sb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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: hold nfsd_mutex, have NFSD_NET_UP set, or don't call this. no cap. πŸ™ˆ

🌈 SEE ALSO 🌈

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