This reverts commit 82d356f0294487cfc6b98d16ddea74d67eabddb4. Conflicts: fs/nfsd/state.h --- fs/nfsd/nfs4pnfsds.c | 19 ------------------- fs/nfsd/nfs4state.c | 1 - fs/nfsd/state.h | 2 -- 3 files changed, 22 deletions(-) diff --git a/fs/nfsd/nfs4pnfsds.c b/fs/nfsd/nfs4pnfsds.c index 2732f20..13fe811 100644 --- a/fs/nfsd/nfs4pnfsds.c +++ b/fs/nfsd/nfs4pnfsds.c @@ -274,25 +274,6 @@ static int stateid_hashval(stateid_t *stidp) kref_get(&dsp->ds_ref); } -void -nfs4_pnfs_state_shutdown(void) -{ - struct pnfs_ds_stateid *dsp; - int i; - - dprintk("pNFSD %s: -->\n", __func__); - - ds_lock_state(); - for (i = 0; i < STATEID_HASH_SIZE; i++) { - while (!list_empty(&ds_stid_hashtbl[i])) { - dsp = list_entry(ds_stid_hashtbl[i].next, - struct pnfs_ds_stateid, ds_hash); - put_ds_stateid(dsp); - } - } - ds_unlock_state(); -} - static struct pnfs_mds_id * alloc_init_mds_id(struct pnfs_get_state *gsp) { diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 3c25405..d2256d8 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -5090,7 +5090,6 @@ static int nfs4_state_create_net(struct net *net) nfsd4_client_tracking_exit(net); nfs4_state_destroy_net(net); - nfs4_pnfs_state_shutdown(); } void diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 9935edc..31d5d0f 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -531,7 +531,6 @@ extern struct nfs4_client_reclaim *nfs4_client_to_reclaim(const char *name, extern void pnfs_expire_client(struct nfs4_client *); extern void release_pnfs_ds_dev_list(struct nfs4_ol_stateid *); extern void nfs4_pnfs_state_init(void); -extern void nfs4_pnfs_state_shutdown(void); extern void nfs4_ds_get_verifier(stateid_t *, struct super_block *, u32 *); extern int nfs4_preprocess_pnfs_ds_stateid(struct svc_fh *, stateid_t *); extern void pnfsd_roc(struct nfs4_client *clp, struct nfs4_file *fp); @@ -540,7 +539,6 @@ static inline void nfsd4_free_pnfs_slabs(void) {} static inline int nfsd4_init_pnfs_slabs(void) { return 0; } static inline void pnfs_expire_client(struct nfs4_client *clp) {} static inline void release_pnfs_ds_dev_list(struct nfs4_ol_stateid *stp) {} -static inline void nfs4_pnfs_state_shutdown(void) {} static inline void pnfsd_roc(struct nfs4_client *clp, struct nfs4_file *fp) {} #endif /* CONFIG_PNFSD */ -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html