diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-08-16 12:06:09 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2018-08-22 18:32:07 -0400 |
commit | a26dd64f5477968d730cf92868b4092314b8e45e (patch) | |
tree | d01052a0ea3958cb88210aebfc906ff8d651de40 /fs/nfsd/nfs4state.c | |
parent | cb25e7b293ec5cd82bc958a6c89dadeb198504b4 (diff) | |
download | lwn-a26dd64f5477968d730cf92868b4092314b8e45e.tar.gz lwn-a26dd64f5477968d730cf92868b4092314b8e45e.zip |
nfsd: Remove callback_cred
Clean up: The global callback_cred is no longer used, so it can be
removed.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r-- | fs/nfsd/nfs4state.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 3322fe35a8fe..b0ca0efd2875 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -7231,14 +7231,10 @@ nfs4_state_start(void) { int ret; - ret = set_callback_cred(); - if (ret) - return ret; - laundry_wq = alloc_workqueue("%s", WQ_UNBOUND, 0, "nfsd4"); if (laundry_wq == NULL) { ret = -ENOMEM; - goto out_cleanup_cred; + goto out; } ret = nfsd4_create_callback_queue(); if (ret) @@ -7249,8 +7245,7 @@ nfs4_state_start(void) out_free_laundry: destroy_workqueue(laundry_wq); -out_cleanup_cred: - cleanup_callback_cred(); +out: return ret; } @@ -7287,7 +7282,6 @@ nfs4_state_shutdown(void) { destroy_workqueue(laundry_wq); nfsd4_destroy_callback_queue(); - cleanup_callback_cred(); } static void |