From 46e6ba39f10b4874298cd617b4db656bb562eb37 Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 31 Mar 2003 22:49:17 +0000 Subject: - Move p->p_sigmask to td->td_sigmask. Signal masks will be per thread with a follow on commit to kern_sig.c - signotify() now operates on a thread since unmasked pending signals are stored in the thread. - PS_NEEDSIGCHK moves to TDF_NEEDSIGCHK. --- sys/fs/coda/coda_psdev.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'sys/fs/coda') diff --git a/sys/fs/coda/coda_psdev.c b/sys/fs/coda/coda_psdev.c index 392012b..ef237c4 100644 --- a/sys/fs/coda/coda_psdev.c +++ b/sys/fs/coda/coda_psdev.c @@ -548,7 +548,7 @@ coda_call(mntinfo, inSize, outSize, buffer) */ i = 0; PROC_LOCK(p); - psig_omask = p->p_sigmask; + psig_omask = td->td_sigmask; do { error = msleep(&vmp->vm_sleep, &p->p_mtx, (coda_call_sleep|coda_pcatch), "coda_call", @@ -563,8 +563,8 @@ coda_call(mntinfo, inSize, outSize, buffer) else { SIGEMPTYSET(tempset); SIGADDSET(tempset, SIGIO); - if (SIGSETEQ(p->p_siglist, tempset)) { - SIGADDSET(p->p_sigmask, SIGIO); + if (SIGSETEQ(td->td_siglist, tempset)) { + SIGADDSET(td->td_sigmask, SIGIO); #ifdef CODA_VERBOSE printf("coda_call: tsleep returns %d SIGIO, cnt %d\n", error, i); @@ -572,8 +572,8 @@ coda_call(mntinfo, inSize, outSize, buffer) } else { SIGDELSET(tempset, SIGIO); SIGADDSET(tempset, SIGALRM); - if (SIGSETEQ(p->p_siglist, tempset)) { - SIGADDSET(p->p_sigmask, SIGALRM); + if (SIGSETEQ(td->td_siglist, tempset)) { + SIGADDSET(td->td_sigmask, SIGALRM); #ifdef CODA_VERBOSE printf("coda_call: tsleep returns %d SIGALRM, cnt %d\n", error, i); @@ -584,25 +584,25 @@ coda_call(mntinfo, inSize, outSize, buffer) error, i); #if notyet - tempset = p->p_siglist; - SIGSETNAND(tempset, p->p_sigmask); + tempset = td->td_siglist; + SIGSETNAND(tempset, td->td_sigmask); printf("coda_call: siglist = %p, sigmask = %p, mask %p\n", - p->p_siglist, p->p_sigmask, + td->td_siglist, td->td_sigmask, tempset); break; - SIGSETOR(p->p_sigmask, p->p_siglist); - tempset = p->p_siglist; - SIGSETNAND(tempset, p->p_sigmask); + SIGSETOR(td->td_sigmask, td->td_siglist); + tempset = td->td_siglist; + SIGSETNAND(tempset, td->td_sigmask); printf("coda_call: new mask, siglist = %p, sigmask = %p, mask %p\n", - p->p_siglist, p->p_sigmask, + td->td_siglist, td->td_sigmask, tempset); #endif } } } } while (error && i++ < 128 && VC_OPEN(vcp)); - p->p_sigmask = psig_omask; - signotify(p); + td->td_sigmask = psig_omask; + signotify(td); PROC_UNLOCK(p); #else (void) tsleep(&vmp->vm_sleep, coda_call_sleep, "coda_call", 0); -- cgit v1.1