Home | History | Annotate | Download | only in nfs

Lines Matching refs:rep

182 nfs_connect(struct nfsmount *nmp, struct nfsreq *rep, struct lwp *l)
262 so->so_error == 0 && rep &&
263 (error = nfs_sigintr(nmp, rep, rep->r_lwp)) != 0){
349 nfs_reconnect(struct nfsreq *rep)
352 struct nfsmount *nmp = rep->r_nmp;
365 while ((error = nfs_connect(nmp, rep, &lwp0)) != 0) {
369 if (rep->r_flags & R_SOFTTERM)
457 * "rep == NULL" indicates that it has been called from a server.
468 nfs_send(struct socket *so, struct mbuf *nam, struct mbuf *top, struct nfsreq *rep, struct lwp *l)
473 /* XXX nfs_doio()/nfs_request() calls with rep->r_lwp == NULL */
474 if (l == NULL && rep->r_lwp == NULL)
477 if (rep) {
478 if (rep->r_flags & R_SOFTTERM) {
482 if ((so = rep->r_nmp->nm_so) == NULL) {
483 rep->r_flags |= R_MUSTRESEND;
487 rep->r_flags &= ~R_MUSTRESEND;
488 soflags = rep->r_nmp->nm_soflags;
502 if (rep) {
513 rep->r_flags |= R_MUSTRESEND;
519 rep->r_nmp->nm_mountp->
524 if (rep->r_flags & R_SOFTTERM)
527 rep->r_flags |= R_MUSTRESEND;
755 struct nfsreq *rep;
766 TAILQ_FOREACH(rep, &nfs_reqq, r_chain) {
768 nmp = rep->r_nmp;
769 if (rep->r_mrep || (rep->r_flags & R_SOFTTERM))
771 if (nfs_sigintr(nmp, rep, rep->r_lwp)) {
772 rep->r_flags |= R_SOFTTERM;
775 if (rep->r_rtt >= 0) {
776 rep->r_rtt++;
780 timeo = NFS_RTO(nmp, nfs_proct[rep->r_procnum]);
785 if (rep->r_rtt <= timeo)
794 if ((rep->r_flags & R_TPRINTFMSG) == 0 &&
795 rep->r_rexmit > nmp->nm_deadthresh) {
796 nfs_msg(rep->r_lwp,
799 rep->r_flags |= R_TPRINTFMSG;
801 if (rep->r_rexmit >= rep->r_retry) { /* too many */
803 rep->r_flags |= R_SOFTTERM;
807 if (++rep->r_rexmit > NFS_MAXREXMIT)
808 rep->r_rexmit = NFS_MAXREXMIT;
820 rep->r_rtt = -1;
821 if (sbspace(&so->so_snd) >= rep->r_mreq->m_pkthdr.len &&
823 (rep->r_flags & R_SENT) ||
825 (m = m_copym(rep->r_mreq, 0, M_COPYALL, M_DONTWAIT))){
849 if (rep->r_flags & R_SENT) {
850 rep->r_flags &= ~R_TIMING;
851 if (++rep->r_rexmit > NFS_MAXREXMIT)
852 rep->r_rexmit = NFS_MAXREXMIT;
858 rep->r_flags |= R_SENT;
861 rep->r_rtt = 0;
886 nfs_sigintr(struct nfsmount *nmp, struct nfsreq *rep, struct lwp *l)
890 if (rep && (rep->r_flags & R_SOFTTERM))
908 nfs_rcvlock(struct nfsmount *nmp, struct nfsreq *rep)
915 KASSERT(nmp == rep->r_nmp);
923 if (rep->r_lwp != curlwp)
946 if (rep->r_mrep != NULL) {
951 if (nfs_sigintr(rep->r_nmp, rep, rep->r_lwp)) {