static void nfs4_shutdown_client(struct nfs_client *clp) { if (__test_and_clear_bit(NFS_CS_RENEWD, &clp->cl_res_state)) nfs4_kill_renewd(clp); nfs4_shutdown_session(clp); nfs4_destroy_callback(clp); if (__test_and_clear_bit(NFS_CS_IDMAP, &clp->cl_res_state)) nfs_idmap_delete(clp); rpc_destroy_wait_queue(&clp->cl_rpcwaitq); kfree(clp->cl_serverowner); kfree(clp->cl_serverscope); kfree(clp->cl_implid); }
/** * nfs4_shutdown_slot_table - release resources attached to a slot table * @tbl: slot table to shut down * */ void nfs4_shutdown_slot_table(struct nfs4_slot_table *tbl) { nfs4_release_slot_table(tbl); rpc_destroy_wait_queue(&tbl->slot_tbl_waitq); }