aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index a8c2122a481e..01ff544dc1f5 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3238,8 +3238,6 @@ __nfs4_state_shutdown(void)
3238 } 3238 }
3239 3239
3240 cancel_delayed_work(&laundromat_work); 3240 cancel_delayed_work(&laundromat_work);
3241 flush_workqueue(laundry_wq);
3242 destroy_workqueue(laundry_wq);
3243 nfsd4_shutdown_recdir(); 3241 nfsd4_shutdown_recdir();
3244 nfs4_init = 0; 3242 nfs4_init = 0;
3245} 3243}
@@ -3247,6 +3245,8 @@ __nfs4_state_shutdown(void)
3247void 3245void
3248nfs4_state_shutdown(void) 3246nfs4_state_shutdown(void)
3249{ 3247{
3248 cancel_rearming_delayed_workqueue(laundry_wq, &laundromat_work);
3249 destroy_workqueue(laundry_wq);
3250 nfs4_lock_state(); 3250 nfs4_lock_state();
3251 nfs4_release_reclaim(); 3251 nfs4_release_reclaim();
3252 __nfs4_state_shutdown(); 3252 __nfs4_state_shutdown();