aboutsummaryrefslogtreecommitdiff
path: root/sys/coda
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-03-31 22:49:17 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-03-31 22:49:17 +0000
commit4093529dee0f4cb9b9e199e4221d9d95f0cd347a (patch)
treeda7bdaf8a9eef1885d86203074ba0ad8ae222e7c /sys/coda
parent0d49bb4b30e7ecf70acdbfc41bb709ca681ae4d2 (diff)
downloadsrc-4093529dee0f4cb9b9e199e4221d9d95f0cd347a.tar.gz
src-4093529dee0f4cb9b9e199e4221d9d95f0cd347a.zip
- 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.
Notes
Notes: svn path=/head/; revision=112888
Diffstat (limited to 'sys/coda')
-rw-r--r--sys/coda/coda_psdev.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/coda/coda_psdev.c b/sys/coda/coda_psdev.c
index 392012ba3dd5..ef237c47e4a6 100644
--- a/sys/coda/coda_psdev.c
+++ b/sys/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);