nfs4_preprocess_seqid_op(9)
β¨ nfs4_preprocess_seqid_op(9) β¨
okay so bestie, this one lives in the Kernel API Manual and it's literally the girl who finds your ol_stateid and gets it all prepped for a seqid-morphing op. no cap, she's a whole vibe π
πΈ NAME πΈ
nfs4_preprocess_seqid_op β find and prep an ol_stateid for a seqid-morphing op π
π¦ SYNOPSIS π¦
__be32 nfs4_preprocess_seqid_op (struct nfsd4_compound_state *cstate ,
u32 seqid , stateid_t *stateid , unsigned short typemask ,
unsigned short statusmask , struct nfs4_ol_stateid **stpp ,
struct nfsd_net *nn
);
like yes she takes seven args, she's high-maintenance, she's iconic π
π ARGUMENTS π
cstateβ compound state π«Ά (the original page calls it "compund state", which is honestly so real of it)seqidβ the seqid, and it's provided by client β not us, never us πstateidβ the stateid, also provided by client πtypemaskβ mask of allowable types for this operation β¨statusmaskβ mask of allowed states:0orSTID_CLOSEDπ₯stppβ return pointer for the stateid found π« like here's where the find goesnnβ net namespace for request π
π DESCRIPTION π
so here's the tea β Given a stateid+seqid from a client, she looks up an nfs4_ol_stateid and returns it in stpp. that's the whole job and she ate π
and on an nfs_ok return β listen β the returned stateid will have its st_mutex locked π like she hands it to you already holding the lock, that's the deal, don't forget to deal with it bestie π
π§ SEE ALSO π§
Kernel file ./fs/nfsd/nfs4state.c β and the whole group chat is here, fr fr:
nfs4_delegation_exists(9)hash_delegation_locked(9)revoke_delegation(9)nfs4_replay_free_cache(9)nfsd4_revoke_states(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)nfsd4_release_lockowner(9)nfsd4_vet_deleg_time(9)nfsd4_deleg_getattr_conflict(9)nfsd_get_dir_deleg(9)nfsd_update_cmtime_attr(9)
bestie reminder:statusmaskis only0orSTID_CLOSED. those are the options. that's it. periodt π
and that's the page!! source/version is ./fs/nfsd, dated October 2026, mwah π«Άπ go read the other ones, 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