aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorMike Snitzer <[email protected]>2024-09-05 19:09:44 +0000
committerAnna Schumaker <[email protected]>2024-09-23 19:03:30 +0000
commit47e988147f409f70e0f01a5e6dc5940375e02343 (patch)
treeb164422c4d8f3cfe7aeaadeaefe1880a86a04f71 /rust/helpers/helpers.c
parentnfsd: add nfsd_file_acquire_local() (diff)
downloadkernel-47e988147f409f70e0f01a5e6dc5940375e02343.tar.gz
kernel-47e988147f409f70e0f01a5e6dc5940375e02343.zip
nfsd: add nfsd_serv_try_get and nfsd_serv_put
Introduce nfsd_serv_try_get and nfsd_serv_put and update the nfsd code to prevent nfsd_destroy_serv from destroying nn->nfsd_serv until any caller of nfsd_serv_try_get releases their reference using nfsd_serv_put. A percpu_ref is used to implement the interlock between nfsd_destroy_serv and any caller of nfsd_serv_try_get. This interlock is needed to properly wait for the completion of client initiated localio calls to nfsd (that are _not_ in the context of nfsd). Signed-off-by: Mike Snitzer <[email protected]> Reviewed-by: Chuck Lever <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: NeilBrown <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions