Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  8 Aug 2001 18:20:19 -0400 (EDT)
From:      Evan Sarmiento <ems@open-root.org>
To:        freebsd-hackers@freebsd.org
Subject:   mutex locking pgrp
Message-ID:  <20010808222019.92C923A07E@postfix.sekt7.org>

next in thread | raw e-mail | index | archive | help
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?

Also, my pr has been sitting in gnats for a while, I think that patch
may be beneficial...
http://www.freebsd.org/cgi/query-pr.cgi?pr=29423

-- 
-----------------------------------
Evan Sarmiento | www.open-root.org 
ems@sekt7.org  | www.sekt7.org/~ems/
-----------------------------------









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?20010808222019.92C923A07E>