Changeset View
Changeset View
Standalone View
Standalone View
sys/netsmb/smb_iod.c
Show First 20 Lines • Show All 551 Lines • ▼ Show 20 Lines | switch (rqp->sr_state) { | ||||
rqp->sr_flags &= ~SMBR_XLOCK; | rqp->sr_flags &= ~SMBR_XLOCK; | ||||
if (rqp->sr_flags & SMBR_XLOCKWANT) { | if (rqp->sr_flags & SMBR_XLOCKWANT) { | ||||
rqp->sr_flags &= ~SMBR_XLOCKWANT; | rqp->sr_flags &= ~SMBR_XLOCKWANT; | ||||
wakeup(rqp); | wakeup(rqp); | ||||
} | } | ||||
break; | break; | ||||
case SMBRQ_SENT: | case SMBRQ_SENT: | ||||
SMB_TRAN_GETPARAM(vcp, SMBTP_TIMEOUT, &tstimeout); | SMB_TRAN_GETPARAM(vcp, SMBTP_TIMEOUT, &tstimeout); | ||||
timespecadd(&tstimeout, &tstimeout); | timespecadd(&tstimeout, &tstimeout, &tstimeout); | ||||
getnanotime(&ts); | getnanotime(&ts); | ||||
timespecsub(&ts, &tstimeout); | timespecsub(&ts, &tstimeout, &ts); | ||||
if (timespeccmp(&ts, &rqp->sr_timesent, >)) { | if (timespeccmp(&ts, &rqp->sr_timesent, >)) { | ||||
smb_iod_rqprocessed(rqp, ETIMEDOUT); | smb_iod_rqprocessed(rqp, ETIMEDOUT); | ||||
} | } | ||||
break; | break; | ||||
default: | default: | ||||
break; | break; | ||||
} | } | ||||
if (herror) | if (herror) | ||||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | if (evp->ev_type & SMBIOD_EV_SYNC) { | ||||
wakeup(evp); | wakeup(evp); | ||||
SMB_IOD_EVUNLOCK(iod); | SMB_IOD_EVUNLOCK(iod); | ||||
} else | } else | ||||
free(evp, M_SMBIOD); | free(evp, M_SMBIOD); | ||||
} | } | ||||
#if 0 | #if 0 | ||||
if (iod->iod_state == SMBIOD_ST_VCACTIVE) { | if (iod->iod_state == SMBIOD_ST_VCACTIVE) { | ||||
getnanotime(&tsnow); | getnanotime(&tsnow); | ||||
timespecsub(&tsnow, &iod->iod_pingtimo); | timespecsub(&tsnow, &iod->iod_pingtimo, &tsnow); | ||||
if (timespeccmp(&tsnow, &iod->iod_lastrqsent, >)) { | if (timespeccmp(&tsnow, &iod->iod_lastrqsent, >)) { | ||||
smb_smb_echo(vcp, &iod->iod_scred); | smb_smb_echo(vcp, &iod->iod_scred); | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
smb_iod_sendall(iod); | smb_iod_sendall(iod); | ||||
smb_iod_recvall(iod); | smb_iod_recvall(iod); | ||||
return; | return; | ||||
▲ Show 20 Lines • Show All 81 Lines • Show Last 20 Lines |