From owner-freebsd-current Thu Dec 3 02:16:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA24918 for freebsd-current-outgoing; Thu, 3 Dec 1998 02:16:05 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA24866 for ; Thu, 3 Dec 1998 02:15:58 -0800 (PST) (envelope-from vallo@myhakas.matti.ee) Received: from myhakas.matti.ee (myhakas [194.126.98.150]) by solaris.matti.ee (8.8.8/8.8.8.s) with ESMTP id MAA03256; Thu, 3 Dec 1998 12:15:18 +0200 (EET) Received: (from vallo@localhost) by myhakas.matti.ee (8.9.1/8.9.1) id MAA05095; Thu, 3 Dec 1998 12:15:22 +0200 (EET) (envelope-from vallo) Message-ID: <19981203121522.A4900@matti.ee> Date: Thu, 3 Dec 1998 12:15:22 +0200 From: Vallo Kallaste To: "Robert V. Baron" Cc: freebsd-current@FreeBSD.ORG Subject: Re: CODA on FreeBSD-CURRENT ... an interesting vm bug Reply-To: vallo@matti.ee References: <4.1.19981123122653.00abfe40@206.25.93.69> <19981125142249.B38959@matti.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Robert V. Baron on Wed, Dec 02, 1998 at 10:23:01AM -0500 Organization: =?iso-8859-1?Q?AS_Matti_B=FCrootehnika?= Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Robert V. Baron" wrote: > Well, the bug is not that interesting ... > > I tried cvsup into coda on a 11/05 kernel. Doing cvsup'ing src > worked, but then I switched the tag from RELENG_2_2 to . and > the system crashed ... > What is happening here is that coda_rdwr does a VFS_VGET to get a > vnode the hardway. The vnode comes back locked (probably thru vget) > and is locked by the process "curproc" (cvsup in this case). But > coda_rdwr needs to unlock the vnode. It gets its process pointer > from the uio_procp field of the uio argument. Well > vnode_pager_input_old sets this field to 0 ... not curproc! Thus > the unlock fails with the panic above. > > moral: vnode_pager_input_old gets called in a process context so it > should use curproc not 0 as its procp. > > I fixed a different coda/related bug in vnode_pager_input_coda > earlier, so if there are no major objections I will commit this > change Fri noon. With the earlier bug (look in the "current" archives > for vnode_pager_input_old around Sep 28.), I determined that only > coda used vnode_pager_input_old, so I don't expect this change to > effect anyone besides Coda. Well, though I don't have enough knowledge to understand what exactly you meant, I'm glad to see that someone is actively working on coda. I'm actually an newcomer to coda but as far I can understand it looks very promising. Especially after having good client side on different variants of Windows(9x|NT). I'm trying to push our sysadmin into coda world but he is quite conservative 8-) and uses Linux. Well, that doesn't matter. Thanks Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message