Lines Matching refs:mi

425 nfs4_log_badowner(mntinfo4_t *mi, nfs_opnum4 op)
433 if (mi->mi_flags & MI4_BADOWNER_DEBUG)
438 if (nfs_rw_enter_sig(&mi->mi_recovlock, RW_READER,
439 mi->mi_flags & MI4_INT))
442 server = find_nfs4_server(mi);
444 nfs_rw_exit(&mi->mi_recovlock);
449 zcmn_err(mi->mi_zone->zone_id, CE_WARN,
453 mi->mi_curr_serv->sv_hostname);
458 nfs_rw_exit(&mi->mi_recovlock);
467 mutex_enter(&mi->mi_lock);
468 if (!(mi->mi_flags & MI4_BADOWNER_DEBUG)) {
469 nfs4_queue_fact(RF_BADOWNER, mi, NFS4ERR_BADOWNER, 0, op,
471 mi->mi_flags |= MI4_BADOWNER_DEBUG;
473 mutex_exit(&mi->mi_lock);
992 nfs_clget4(mntinfo4_t *mi, servinfo4_t *svp, cred_t *cr, CLIENT **newcl,
1003 ci.cl_readsize = mi->mi_tsize;
1011 if (!(mi->mi_flags & MI4_HARD) && (mi->mi_flags & MI4_DOWN))
1014 ci.cl_retrans = mi->mi_retrans;
1016 ci.cl_prog = mi->mi_prog;
1017 ci.cl_vers = mi->mi_vers;
1018 ci.cl_flags = mi->mi_flags;
1026 is_recov = (curthread == mi->mi_recovthread);
1039 if ((FS_OR_ZONE_GONE4(mi->mi_vfsp)) &&
1046 if (!(mi->mi_flags & MI4_HARD))
1050 if (FAILOVER_MOUNT4(mi))
1212 nfs4_rfscall(mntinfo4_t *mi, rpcproc_t which, xdrproc_t xdrargs, caddr_t argsp,
1239 mutex_enter(&mi->mi_lock);
1240 if (mi->mi_flags & MI4_SHUTDOWN) {
1241 mutex_exit(&mi->mi_lock);
1244 mutex_exit(&mi->mi_lock);
1257 svp = mi->mi_curr_serv;
1258 rpcerr.re_errno = nfs_clget4(mi, svp, cr, &client, &ch, nfscl);
1262 timeo = (mi->mi_timeo * hz) / 10;
1277 is_recov = (curthread == mi->mi_recovthread);
1284 mi->mi_vfsp->vfs_flag,
1291 mutex_enter(&mi->mi_lock);
1292 if (mi->mi_flags & MI4_SHUTDOWN) {
1293 mutex_exit(&mi->mi_lock);
1299 mutex_exit(&mi->mi_lock);
1301 if ((mi->mi_vfsp->vfs_flag & VFS_UNMOUNTED) &&
1310 mutex_enter(&mi->mi_lock);
1311 if ((mi->mi_flags & MI4_TIMEDOUT) ||
1313 mutex_exit(&mi->mi_lock);
1319 mutex_exit(&mi->mi_lock);
1320 timeo = (MIN(mi->mi_timeo, SHORTWAIT) * hz) / 10;
1331 sigintr(&smask, (int)mi->mi_flags & MI4_INT);
1332 if (!(mi->mi_flags & MI4_INT))
1348 if (!(mi->mi_flags & MI4_INT))
1396 mutex_enter(&mi->mi_lock);
1397 mi->mi_noresponse++;
1398 mutex_exit(&mi->mi_lock);
1407 mutex_enter(&mi->mi_lock);
1408 mi->mi_flags |= MI4_TIMEDOUT;
1409 mutex_exit(&mi->mi_lock);
1423 if (mi->mi_vers == 4 && FAILOVER_MOUNT4(mi) &&
1448 mutex_enter(&mi->mi_lock);
1449 if (!(mi->mi_flags & MI4_PRINTED)) {
1450 mi->mi_flags |= MI4_PRINTED;
1451 mutex_exit(&mi->mi_lock);
1454 nfs4_queue_fact(RF_SENDQ_FULL, mi, 0,
1457 nfs4_queue_fact(RF_SRV_NOT_RESPOND, mi,
1460 mutex_exit(&mi->mi_lock);
1464 if (!(mi->mi_flags & MI4_NOPRINT)) {
1468 mi, 0, 0, 0, FALSE, NULL,
1472 RF_SRV_NOT_RESPOND, mi, 0,
1483 zoneid_t zoneid = mi->mi_zone->zone_id;
1492 mutex_enter(&mi->mi_lock);
1493 mi->mi_flags |= MI4_DOWN;
1494 mutex_exit(&mi->mi_lock);
1499 mi->mi_vers, mi->mi_rfsnames[which], bufp);
1501 if (!(mi->mi_flags & MI4_NOPRINT)) {
1503 mi->mi_vers, mi->mi_rfsnames[which],
1511 mi->mi_rfsnames[which], svp->sv_hostname,
1514 if (!(mi->mi_flags & MI4_NOPRINT)) {
1517 mi->mi_rfsnames[which],
1541 if (mi->mi_flags & (MI4_DOWN | MI4_PRINTED)) {
1542 mutex_enter(&mi->mi_lock);
1543 mi->mi_flags &= ~MI4_DOWN;
1544 if (mi->mi_flags & MI4_PRINTED) {
1545 mi->mi_flags &= ~MI4_PRINTED;
1546 mutex_exit(&mi->mi_lock);
1547 if (!(mi->mi_vfsp->vfs_flag & VFS_UNMOUNTED))
1548 nfs4_queue_fact(RF_SRV_OK, mi, 0, 0,
1551 mutex_exit(&mi->mi_lock);
1555 if (!(mi->mi_flags & MI4_NOPRINT) &&
1556 !(mi->mi_vfsp->vfs_flag & VFS_UNMOUNTED))
1557 nfs4_queue_fact(RF_SRV_OK, mi, 0, 0, 0,
1581 rfs4call(mntinfo4_t *mi, COMPOUND4args_clnt *argsp, COMPOUND4res_clnt *resp,
1589 ASSERT(nfs_zone() == mi->mi_zone);
1594 mi->mi_reqs[NFSPROC4_COMPOUND].value.ui64++;
1602 error = nfs4_rfscall(mi, NFSPROC4_COMPOUND,
1624 mi->mi_reqs[resp->array[i].resop].value.ui64++;
1672 mntinfo4_t *mi;
1677 mi = VTOMI4(rootvp);
1701 lookuparg.mi = VTOMI4(rootvp);
1712 rfs4call(mi, &args, &res, cr, &doqueue, RFSCALL_SOFT, ep);
1720 nfs4_queue_event(RE_FAIL_REMAP_OP, mi, NULL,
1727 nfs4_queue_event(RE_FAIL_REMAP_LEN, mi, NULL,
1748 nfs4_queue_event(RE_FAIL_REMAP_OP, mi, NULL,
1755 nfs4_queue_event(RE_FAIL_REMAP_LEN, mi, NULL,
1790 nfs4_remap_file(mntinfo4_t *mi, vnode_t *vp, int flags, nfs4_error_t *ep)
1811 nfs4_remap_root(mi, ep, flags);
1819 ep->error = VFS_ROOT(mi->mi_vfsp, &rootvp);
1896 nfs4_remap_root(mi, ep, flags);
1899 ep->error = VFS_ROOT(mi->mi_vfsp, &rootvp);
1937 nfs4_queue_event(RE_FILE_DIFF, mi,
1945 rp->r_server = mi->mi_curr_serv;
2014 nfs4_check_remap(mntinfo4_t *mi, vnode_t *vp, int flags, nfs4_error_t *ep)
2022 if (VTOR4(vp)->r_server == mi->mi_curr_serv)
2025 nfs4_remap_file(mi, vp, flags, ep);
2051 mntinfo4_t *mi = VTOMI4(dvp);
2068 (curthread == mi->mi_recovthread));
2084 e.error = VFS_ROOT(mi->mi_vfsp, &rootvp);
2087 rp = r4find_unlocked(fhp, mi->mi_vfsp);
2110 e.error = nfs4_start_fop(mi, rootvp, NULL, OH_LOOKUP,
2122 if (nfs4_needs_recovery(&e, FALSE, mi->mi_vfsp)) {
2126 abort = nfs4_start_recovery(&e, mi,
2130 nfs4_end_fop(mi, rootvp, NULL, OH_LOOKUP,
2136 nfs4_end_fop(mi, rootvp, NULL, OH_LOOKUP,
2151 nfs4_end_fop(mi, rootvp, NULL, OH_LOOKUP,
2160 nfs4_end_fop(mi, rootvp, NULL, OH_LOOKUP,
2187 mi->mi_vfsp)) {
2191 abort = nfs4_start_recovery(&e, mi,
2195 nfs4_end_fop(mi, rootvp, NULL,
2202 nfs4_end_fop(mi, rootvp, NULL,
2213 nfs4_end_fop(mi, rootvp, NULL,
2223 nfs4_end_fop(mi, rootvp, NULL, OH_LOOKUP,
2232 nfs4_end_fop(mi, rootvp, NULL, OH_LOOKUP, &recov_state, FALSE);
2233 psfh = sfh4_get(&newpfh, mi);
2235 sfh = sfh4_get(&newfh, mi);
2236 vp = makenfs4node_by_fh(sfh, psfh, &np, &gar, mi, cr, t);