nfsd4_revoke_states(9)
πΈ NAME πΈ
bestie, welcome to the Kernel API Manual entry for nfsd4_revoke_states β it's the function that revokes all nfsv4 states associated with a given filesystem. periodt. π
β¨ SYNOPSIS β¨
void nfsd4_revoke_states (struct nfsd_net *nn , struct super_block *sb
);
π ARGUMENTS π
nnβ used to identify the instance of nfsd (there is one per net namespace), okay bestie?sbβ thesuper_blockused to identify the target filesystem.
π DESCRIPTION π
okay so here's the tea: all nfs4 states held by the server instance and associated with a file on the given filesystem β that's open, lock, delegation, and layout states β will be revoked. That results in any files being closed, and so all references from nfsd to the filesystem get released. The glow-up? nfsd will no longer prevent the filesystem from being unmounted. slay. β¨
The clients that own those states will subsequently be notified that the states have been "admin-revoked". not me being dramatic about a kernel notification, but it's iconic. π
π¦ CONTEXT π¦
bestie, this is a must not a maybe: the caller must holdnfsd_mutexwithNFSD_NET_UPset. Outside that window,nn->conf_id_hashtblis unallocated or freed, so the walk would dereference aNULLor dangling pointer. no cap, that's the bad timeline. π
π SEE ALSO π
- Kernel file
./fs/nfsd/nfs4state.c nfs4_delegation_exists(9)hash_delegation_locked(9)revoke_delegation(9)nfs4_replay_free_cache(9)nfsd4_revoke_export_states(9)nfsd_slot_shrinker_count(9)nfsd_slot_shrinker_scan(9)nfsd4_put_client(9)nfsd_wait_for_delegreturn(9)nfsd_breaker_owns_lease(9)nfsd4_deleg_lm_open_conflict(9)nfsd4_process_open2(9)nfsd4_force_end_grace(9)nfs4_preprocess_stateid_op(9)nfs4_preprocess_seqid_op(9)nfsd4_release_lockowner(9)nfsd4_vet_deleg_time(9)nfsd4_deleg_getattr_conflict(9)nfsd_get_dir_deleg(9)nfsd_update_cmtime_attr(9)
signed off from the ./fs/nfsd source with the October 2026 date, for nfsd4_revoke_states(9) β byeee bestie π«Ά
π¦ 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