--- src/sys/netproto/smb/smb_trantcp.c 2006/09/05 00:55:49 1.16 +++ src/sys/netproto/smb/smb_trantcp.c 2007/02/18 16:13:27 1.17 @@ -103,7 +103,7 @@ nb_poll(struct nbpcb *nbp, int events, s static int nbssn_rselect(struct nbpcb *nbp, struct timeval *tv, int events, struct thread *td) { - struct proc *p = td->td_proc; + struct lwp *lp = td->td_lwp; struct timeval atv, rtv, ttv; int timo, error; @@ -117,9 +117,9 @@ nbssn_rselect(struct nbpcb *nbp, struct timevaladd(&atv, &rtv); } timo = 0; - KKASSERT(p); + KKASSERT(lp); retry: - p->p_flag |= P_SELECT; + lp->lwp_flag |= LWP_SELECT; error = nb_poll(nbp, events, td); if (error) { error = 0; @@ -134,15 +134,15 @@ retry: timo = tvtohz_high(&ttv); } crit_enter(); - if ((p->p_flag & P_SELECT) == 0) { + if ((lp->lwp_flag & LWP_SELECT) == 0) { crit_exit(); goto retry; } - p->p_flag &= ~P_SELECT; + lp->lwp_flag &= ~LWP_SELECT; error = tsleep((caddr_t)&selwait, 0, "nbsel", timo); crit_exit(); done: - p->p_flag &= ~P_SELECT; + lp->lwp_flag &= ~LWP_SELECT; if (error == ERESTART) return 0; return error;