diff options
author | 2024-09-05 15:09:44 -0400 | |
---|---|---|
committer | 2024-09-23 15:03:30 -0400 | |
commit | 47e988147f409f70e0f01a5e6dc5940375e02343 (patch) | |
tree | b164422c4d8f3cfe7aeaadeaefe1880a86a04f71 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | nfsd: add nfsd_file_acquire_local() (diff) | |
download | wireguard-linux-47e988147f409f70e0f01a5e6dc5940375e02343.tar.xz wireguard-linux-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 <snitzer@kernel.org>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions