summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2021-11-29 05:51:25 +0100
committerChuck Lever <chuck.lever@oracle.com>2021-12-13 19:42:55 +0100
commit5a8a7ff57421b7de3ae72019938ffb5daaee36e7 (patch)
treeff724a0ccae0d160b6b73994372397853333f4a0 /samples
parentlockd: introduce nlmsvc_serv (diff)
downloadlinux-5a8a7ff57421b7de3ae72019938ffb5daaee36e7.tar.xz
linux-5a8a7ff57421b7de3ae72019938ffb5daaee36e7.zip
lockd: simplify management of network status notifiers
Now that the network status notifiers use nlmsvc_serv rather then nlmsvc_rqst the management can be simplified. Notifier unregistration synchronises with any pending notifications so providing we unregister before nlm_serv is freed no further interlock is required. So we move the unregister call to just before the thread is killed (which destroys the service) and just before the service is destroyed in the failure-path of lockd_up(). Then nlm_ntf_refcnt and nlm_ntf_wq can be removed. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions