Lines Matching refs:oo
2010 rfs4_openowner_t *oo = (rfs4_openowner_t *)u_entry;
2013 return (EQOPENOWNER(&oo->ro_owner, arg));
2019 rfs4_openowner_t *oo = (rfs4_openowner_t *)u_entry;
2021 return (&oo->ro_owner);
2035 rfs4_openowner_t *oo = (rfs4_openowner_t *)u_entry;
2038 rfs4_dbe_lock(oo->ro_client->rc_dbe);
2039 list_remove(&oo->ro_client->rc_openownerlist, oo);
2040 rfs4_dbe_unlock(oo->ro_client->rc_dbe);
2043 rfs4_client_rele(oo->ro_client);
2044 oo->ro_client = NULL;
2047 rfs4_free_reply(&oo->ro_reply);
2049 if (oo->ro_reply_fh.nfs_fh4_val) {
2050 kmem_free(oo->ro_reply_fh.nfs_fh4_val,
2051 oo->ro_reply_fh.nfs_fh4_len);
2052 oo->ro_reply_fh.nfs_fh4_val = NULL;
2053 oo->ro_reply_fh.nfs_fh4_len = 0;
2056 rfs4_sw_destroy(&oo->ro_sw);
2057 list_destroy(&oo->ro_statelist);
2060 kmem_free(oo->ro_owner.owner_val, oo->ro_owner.owner_len);
2064 rfs4_openowner_rele(rfs4_openowner_t *oo)
2066 rfs4_dbe_rele(oo->ro_dbe);
2072 rfs4_openowner_t *oo = (rfs4_openowner_t *)u_entry;
2090 oo->ro_reply_fh.nfs_fh4_len = 0;
2091 oo->ro_reply_fh.nfs_fh4_val = NULL;
2093 oo->ro_owner.clientid = openowner->clientid;
2094 oo->ro_owner.owner_val =
2098 oo->ro_owner.owner_val, openowner->owner_len);
2100 oo->ro_owner.owner_len = openowner->owner_len;
2102 oo->ro_need_confirm = TRUE;
2104 rfs4_sw_init(&oo->ro_sw);
2106 oo->ro_open_seqid = seqid;
2107 bzero(&oo->ro_reply, sizeof (nfs_resop4));
2108 oo->ro_client = cp;
2109 oo->ro_cr_set = NULL;
2111 list_create(&oo->ro_statelist, sizeof (rfs4_state_t),
2116 list_insert_tail(&cp->rc_openownerlist, oo);
2125 rfs4_openowner_t *oo;
2130 oo = (rfs4_openowner_t *)rfs4_dbsearch(rfs4_openowner_idx, openowner,
2133 return (oo);
2137 rfs4_update_open_sequence(rfs4_openowner_t *oo)
2140 rfs4_dbe_lock(oo->ro_dbe);
2142 oo->ro_open_seqid++;
2144 rfs4_dbe_unlock(oo->ro_dbe);
2148 rfs4_update_open_resp(rfs4_openowner_t *oo, nfs_resop4 *resp, nfs_fh4 *fh)
2151 rfs4_dbe_lock(oo->ro_dbe);
2153 rfs4_free_reply(&oo->ro_reply);
2155 rfs4_copy_reply(&oo->ro_reply, resp);
2160 if (oo->ro_reply_fh.nfs_fh4_val == NULL)
2161 oo->ro_reply_fh.nfs_fh4_val =
2163 nfs_fh4_copy(fh, &oo->ro_reply_fh);
2165 if (oo->ro_reply_fh.nfs_fh4_val) {
2166 kmem_free(oo->ro_reply_fh.nfs_fh4_val,
2167 oo->ro_reply_fh.nfs_fh4_len);
2168 oo->ro_reply_fh.nfs_fh4_val = NULL;
2169 oo->ro_reply_fh.nfs_fh4_len = 0;
2173 rfs4_dbe_unlock(oo->ro_dbe);
3022 rfs4_free_opens(rfs4_openowner_t *oo, bool_t invalidate,
3027 rfs4_dbe_lock(oo->ro_dbe);
3029 for (sp = list_head(&oo->ro_statelist); sp != NULL;
3030 sp = list_next(&oo->ro_statelist, sp)) {
3036 rfs4_dbe_invalidate(oo->ro_dbe);
3037 rfs4_dbe_unlock(oo->ro_dbe);
3093 rfs4_findstate_by_owner_file(rfs4_openowner_t *oo, rfs4_file_t *fp,
3099 key.rs_owner = oo;
3140 rfs4_openowner_t *oo = ((rfs4_state_t *)argp)->rs_owner;
3143 rfs4_dbe_hold(oo->ro_dbe);
3146 sp->rs_owner = oo;
3153 rfs4_dbe_lock(oo->ro_dbe);
3154 list_insert_tail(&oo->ro_statelist, sp);
3155 rfs4_dbe_unlock(oo->ro_dbe);
3204 rfs4_openowner_t *oo;
3208 for (oo = list_head(&cp->rc_openownerlist); oo != NULL;
3209 oo = list_next(&cp->rc_openownerlist, oo)) {
3210 rfs4_free_opens(oo, TRUE, TRUE);