Lines Matching refs:mi

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