Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Aug 2001 11:12:28 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Evan Sarmiento <ems@open-root.org>
Cc:        freebsd-hackers@FreeBSD.org
Subject:   RE: mutex locking pgrp
Message-ID:  <XFMail.010809111228.jhb@FreeBSD.org>
In-Reply-To: <20010808222019.92C923A07E@postfix.sekt7.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 08-Aug-01 Evan Sarmiento wrote:
> Hello,
> 
> I was looking through kern_proc.c, and I noticed that unlike pfind,
> pgfind does not lock the pointer to a structure being returned,
> further investigating showed that the definition fo the pgrp
> structure itself, in proc.h, doesn't have a mtx struct defined
> within it either.
> 
> My proposal is to create a patch that would create pgrp locking,
> by adding a mtx to pgrp, and then a MACRO which locks
> and unlocks that structure, like PROC_LOCK()
> 
> Would this create any problems?

Seigo Tanimura-san is already working on such a patch.  tanimura@FreeBSD.org

-- 

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-hackers" in the body of the message




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