Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Feb 2006 16:44:25 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 91932 for review
Message-ID:  <200602171644.k1HGiPbx034989@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=91932

Change 91932 by jhb@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602171644.k1HGiPbx034989>