Lines Matching defs:nfscl

825     struct chtab **chp, struct nfs4_clnt *nfscl)
843 nfscl->nfscl_stat.clgets.value.ui64++;
851 mutex_enter(&nfscl->nfscl_chtable4_lock);
852 plistp = &nfscl->nfscl_chtable4;
853 for (ch = nfscl->nfscl_chtable4; ch != NULL; ch = ch->ch_next) {
872 mutex_exit(&nfscl->nfscl_chtable4_lock);
888 ch->ch_next = nfscl->nfscl_chtable4;
889 nfscl->nfscl_chtable4 = ch;
895 } else if (ch != nfscl->nfscl_chtable4) {
897 ch->ch_next = nfscl->nfscl_chtable4;
898 nfscl->nfscl_chtable4 = ch;
908 mutex_exit(&nfscl->nfscl_chtable4_lock);
937 atomic_inc_64(&nfscl->nfscl_stat.clalloc.value.ui64);
939 mutex_exit(&nfscl->nfscl_chtable4_lock);
941 nfscl->nfscl_stat.cltoomany.value.ui64++;
958 atomic_dec_64(&nfscl->nfscl_stat.clalloc.value.ui64);
980 atomic_dec_64(&nfscl->nfscl_stat.clalloc.value.ui64);
993 struct chtab **chp, struct nfs4_clnt *nfscl)
1030 error = clget4(&ci, svp, cr, newcl, chp, nfscl);
1061 clfree4(CLIENT *cl, struct chtab *cp, struct nfs4_clnt *nfscl)
1079 mutex_enter(&nfscl->nfscl_chtable4_lock);
1082 mutex_exit(&nfscl->nfscl_chtable4_lock);
1088 clreclaim4_zone(struct nfs4_clnt *nfscl, uint_t cl_holdtime)
1106 mutex_enter(&nfscl->nfscl_chtable4_lock);
1116 for (ch = nfscl->nfscl_chtable4; ch != NULL; ch = ch->ch_next) {
1146 mutex_exit(&nfscl->nfscl_chtable4_lock);
1173 atomic_add_64(&nfscl->nfscl_stat.clalloc.value.ui64, -n);
1181 struct nfs4_clnt *nfscl;
1188 nfscl = list_head(&nfs4_clnt_list);
1189 for (; nfscl != NULL; nfscl = list_next(&nfs4_clnt_list, nfscl))
1190 clreclaim4_zone(nfscl, CL_HOLDTIME);
1214 enum clnt_stat *rpc_statusp, int flags, struct nfs4_clnt *nfscl)
1258 rpcerr.re_errno = nfs_clget4(mi, svp, cr, &client, &ch, nfscl);
1294 clfree4(client, ch, nfscl);
1303 clfree4(client, ch, nfscl);
1314 clfree4(client, ch, nfscl);
1400 nfscl->nfscl_stat.noresponse.value.ui64++;
1410 clfree4(client, ch, nfscl);
1425 clfree4(client, ch, nfscl);
1490 nfscl->nfscl_stat.badcalls.value.ui64++;
1564 clfree4(client, ch, nfscl);
1587 struct nfs4_clnt *nfscl;
1590 nfscl = zone_getspecific(nfs4clnt_zone_key, nfs_zone());
1591 ASSERT(nfscl != NULL);
1593 nfscl->nfscl_stat.calls.value.ui64++;
1605 doqueue, &rpc_status, flags, nfscl);
2758 struct nfs4_clnt *nfscl;
2761 nfscl = kmem_alloc(sizeof (*nfscl), KM_SLEEP);
2762 mutex_init(&nfscl->nfscl_chtable4_lock, NULL, MUTEX_DEFAULT, NULL);
2763 nfscl->nfscl_chtable4 = NULL;
2764 nfscl->nfscl_zoneid = zoneid;
2766 bcopy(&clstat4_tmpl, &nfscl->nfscl_stat, sizeof (clstat4_tmpl));
2774 nfs4_client_kstat->ks_private = &nfscl->nfscl_stat;
2779 list_insert_head(&nfs4_clnt_list, nfscl);
2782 return (nfscl);
2789 struct nfs4_clnt *nfscl = arg;
2792 if (nfscl == NULL)
2795 list_remove(&nfs4_clnt_list, nfscl);
2797 clreclaim4_zone(nfscl, 0);
2798 for (chp = nfscl->nfscl_chtable4; chp != NULL; chp = next) {
2805 mutex_destroy(&nfscl->nfscl_chtable4_lock);
2806 kmem_free(nfscl, sizeof (*nfscl));
2820 struct nfs4_clnt *nfscl;
2823 nfscl = list_head(&nfs4_clnt_list);
2824 for (; nfscl != NULL; nfscl = list_next(&nfs4_clnt_list, nfscl)) {
2825 if (nfscl->nfscl_zoneid == zoneid) {
2826 clreclaim4_zone(nfscl, 0);