diff options
author | NeilBrown <neilb@suse.de> | 2021-11-29 05:51:25 +0100 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-12-13 19:42:55 +0100 |
commit | 5a8a7ff57421b7de3ae72019938ffb5daaee36e7 (patch) | |
tree | ff724a0ccae0d160b6b73994372397853333f4a0 /samples | |
parent | lockd: introduce nlmsvc_serv (diff) | |
download | linux-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