Date: Wed, 20 Dec 2000 21:10:44 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Jake Burkholder <jburkhol@home.com> Cc: smp@FreeBSD.ORG Subject: RE: review: proctree_lock Message-ID: <XFMail.001220211044.jhb@FreeBSD.org> In-Reply-To: <20001220212106.41C6CBA7D@io.yi.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 20-Dec-00 Jake Burkholder wrote: > > Attached is a patch that adds the proctree_lock. This is a lockmgr > lock which protects all parent-child relationships between processes. > Specifically the field p_pptr, and the p_children/p_sibling list. > Dependant functions are proc_reparent(), and stop(). proc_reparent > requires an exclusive hold, stop requires at least a shared hold. > > This will allow several of the trivial proc-related system calls to > be made MP-safe. > > Please review and test it. An eyeball of it looks ok. I'll try to test it tomorrow. -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.001220211044.jhb>