From owner-cvs-all Tue Dec 18 11: 9:45 2001 Delivered-To: cvs-all@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id BA03137B405 for ; Tue, 18 Dec 2001 11:09:41 -0800 (PST) Received: (qmail 17197 invoked from network); 18 Dec 2001 19:09:41 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 18 Dec 2001 19:09:41 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200112181850.fBIIo2a39603@freefall.freebsd.org> Date: Tue, 18 Dec 2001 11:09:26 -0800 (PST) From: John Baldwin To: John Baldwin Subject: RE: cvs commit: src/sys/alpha/linux linux_machdep.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 18-Dec-01 John Baldwin wrote: > jhb 2001/12/18 10:50:02 PST > > Modified files: > sys/alpha/linux linux_machdep.c > Log: > Merge part of revision 1.18 of sys/i386/linux/linux_machdep.c: don't use > RFTHREAD in linux_clone(). Well, at least they are the same now. However, I do have a question: RFTHREAD causes two things to happen: during exit the leader waits for all the peers to exit before it exits, and when getting advisory file locks, all threads perform the lock using the leader. I'm not sure what happens when two threads try to lock the same file. Ideally they should contend with each other just like other processes. I think they may be sharing the lock right now, which isn't good. My guess as to what is actually right here is that we should stop sharing locks for threaded programs and let each rfork'd process contend on file locks with all other processes including other "threads" in its group and that we should then turn RFTHREAD back on in linux emulation. The only other place that uses RFTHREAD right now is the linuxthreads port. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message