From owner-freebsd-current Fri Jul 13 2:25: 8 2001 Delivered-To: freebsd-current@freebsd.org Received: from sneakerz.org (sneakerz.org [216.33.66.254]) by hub.freebsd.org (Postfix) with ESMTP id 8DB5337B401; Fri, 13 Jul 2001 02:25:05 -0700 (PDT) (envelope-from bright@sneakerz.org) Received: by sneakerz.org (Postfix, from userid 1092) id 6BDF95D010; Fri, 13 Jul 2001 04:25:04 -0500 (CDT) Date: Fri, 13 Jul 2001 04:25:04 -0500 From: Alfred Perlstein To: Seigo Tanimura Cc: jake@FreeBSD.org, jhb@FreeBSD.org, current@FreeBSD.org Subject: Re: Lock of struct filedesc, file, pgrp, session and sigio Message-ID: <20010713042504.O6664@sneakerz.org> References: <20010602125223.J31257@dragon.nuxi.com> <200106040748.f547mUD53783@rina.r.dl.itc.u-tokyo.ac.jp> <200106181004.f5IA4VD63112@rina.r.dl.itc.u-tokyo.ac.jp> <200107020812.f628CfK44241@rina.r.dl.itc.u-tokyo.ac.jp> <20010707164249.C88962@sneakerz.org> <20010709032044.B1894@sneakerz.org> <200107100845.f6A8jqt99404@rina.r.dl.itc.u-tokyo.ac.jp> <20010710035347.Q1894@sneakerz.org> <200107100903.f6A93et02367@rina.r.dl.itc.u-tokyo.ac.jp> <200107111137.f6BBbQt22812@rina.r.dl.itc.u-tokyo.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200107111137.f6BBbQt22812@rina.r.dl.itc.u-tokyo.ac.jp>; from tanimura@r.dl.itc.u-tokyo.ac.jp on Wed, Jul 11, 2001 at 08:37:26PM +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Seigo Tanimura [010711 19:08] wrote: > The patch and the results of build test are now on the web page. > > The discussion of ktrace(2) problem does not cover the solution of > BSD/OS, so it needs updating. Here's some more commentary and a pointer to some work done. This is just about completely file locking related, however I do have a question about PGRP locking, in a certain part you may have to lock two pgrps, how do you deal with deadlock? getvnode() should FHOLD returned fp. should actually be turned into "holdvnode" (implicit VREF) to do reference holding. (later) ibcs2_getdents(), ibcs2_statfs(), __acl_get_fd, __acl_set_fd, __acl_aclcheck_fd(), __acl_delete_fd() depends on getvnode doing FHOLD, once done needs fdrop() added Certain operations, such as: kq = (struct kqueue *)fp->f_data; should not really require that the file be locked, it's implicitly frozen at creation time (i think) Work is here, it's a diff relative to FreeBSD-current + your patch. http://sneakerz.org/~bright/pg_mine.diff thanks, -- -Alfred Perlstein [alfred@freebsd.org] Ok, who wrote this damn function called '??'? And why do my programs keep crashing in it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message