From owner-freebsd-arch@FreeBSD.ORG Wed Jan 12 00:27:07 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4DE216A4F7 for ; Wed, 12 Jan 2005 00:27:07 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 556B443D46 for ; Wed, 12 Jan 2005 00:27:07 +0000 (GMT) (envelope-from peadar.edwards@gmail.com) Received: by wproxy.gmail.com with SMTP id 58so406513wri for ; Tue, 11 Jan 2005 16:27:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=dtraIyUrb2zCk05wSBD+hSlUAtkFHvuhERfoLgl8T4XKMA4yotHzI3kVKDRYftHhqFE8QoQV4JCAOJKORm29Cqtt2X898ui9gz2JnlVQEUBsXF6zjwlZW4kluNBJW6555sDVs48ZQriPbSZCPbgRp0RM6homTW6SjM8MsZbFrkk= Received: by 10.54.39.76 with SMTP id m76mr208532wrm; Tue, 11 Jan 2005 16:27:06 -0800 (PST) Received: by 10.54.57.76 with HTTP; Tue, 11 Jan 2005 16:27:06 -0800 (PST) Message-ID: <34cb7c840501111627d3a1bf3@mail.gmail.com> Date: Wed, 12 Jan 2005 00:27:06 +0000 From: Peter Edwards To: Poul-Henning Kamp In-Reply-To: <25164.1105484915@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <34cb7c84050111145415980aa2@mail.gmail.com> <25164.1105484915@critter.freebsd.dk> cc: arch@freebsd.org cc: ups@tree.com Subject: Re: Slight change of vnode<-->vm object relationship. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Peter Edwards List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jan 2005 00:27:08 -0000 On Wed, 12 Jan 2005 00:08:35 +0100, Poul-Henning Kamp wrote: > In message <34cb7c84050111145415980aa2@mail.gmail.com>, Peter Edwards writes: > > >How about mmap() mappings after the close()? These can persist post > >VOP_CLOSE, can't they? > > I belive they hold a reference to the vnode so that it is in fact > not really closed after all, it just looks that way from userland. > As Stephan pointed out, that's looked after by VOP_INACTIVE, which doesn't pair quite as smoothly with VOP_OPEN. Also, the VOP_OPEN/VOP_CLOSE doesn't seem to bracket for exec() either (there's a call to VOP_OPEN, but I can't find the matching VOP_CLOSE. That could be just a bug, or myopia on my part)