summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 21eb6788cb33..e03e8efff53f 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -5124,7 +5124,6 @@ out_recovery:
5124 return ret; 5124 return ret;
5125} 5125}
5126 5126
5127/* should be called with the state lock held */
5128void 5127void
5129nfs4_state_shutdown_net(struct net *net) 5128nfs4_state_shutdown_net(struct net *net)
5130{ 5129{
@@ -5135,6 +5134,7 @@ nfs4_state_shutdown_net(struct net *net)
5135 cancel_delayed_work_sync(&nn->laundromat_work); 5134 cancel_delayed_work_sync(&nn->laundromat_work);
5136 locks_end_grace(&nn->nfsd4_manager); 5135 locks_end_grace(&nn->nfsd4_manager);
5137 5136
5137 nfs4_lock_state();
5138 INIT_LIST_HEAD(&reaplist); 5138 INIT_LIST_HEAD(&reaplist);
5139 spin_lock(&recall_lock); 5139 spin_lock(&recall_lock);
5140 list_for_each_safe(pos, next, &nn->del_recall_lru) { 5140 list_for_each_safe(pos, next, &nn->del_recall_lru) {
@@ -5149,6 +5149,7 @@ nfs4_state_shutdown_net(struct net *net)
5149 5149
5150 nfsd4_client_tracking_exit(net); 5150 nfsd4_client_tracking_exit(net);
5151 nfs4_state_destroy_net(net); 5151 nfs4_state_destroy_net(net);
5152 nfs4_unlock_state();
5152} 5153}
5153 5154
5154void 5155void