PERFORCE change 91932 for review
John Baldwin
jhb at FreeBSD.org
Fri Feb 17 08:44:38 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=91932
Change 91932 by jhb at jhb_slimer on 2006/02/17 16:43:33
PHOLD around proc_rwmem().
Affected files ...
.. //depot/projects/smpng/sys/ia64/ia64/machdep.c#100 edit
Differences ...
==== //depot/projects/smpng/sys/ia64/ia64/machdep.c#100 (text+ko) ====
@@ -1097,6 +1097,8 @@
r->rnat = (bspst > kstk && (bspst & 0x1ffL) < (kstk & 0x1ffL))
? *(uint64_t*)(kstk | 0x1f8L) : rnat;
} else {
+ /* XXX: What if P_WEXIT is set? */
+ PHOLD(td->td_proc);
iov.iov_base = (void*)(uintptr_t)kstk;
iov.iov_len = r->ndirty;
uio.uio_iov = &iov;
@@ -1114,6 +1116,7 @@
*/
if (uio.uio_resid != 0 && error == 0)
error = ENOSPC;
+ PRELE(td->td_proc);
}
r->bspstore += r->ndirty;
More information about the p4-projects
mailing list