@@ -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)
{
@@ -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
@@ -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 */