From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 21:12:34 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 643D216A4CE; Fri, 30 Apr 2004 21:12:34 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i414CXv5081486; Sat, 1 May 2004 00:12:34 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200405010412.i414CXv5081486@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Robert Watson In-Reply-To: Message from Robert Watson From: Brian Fundakowski Feldman Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 01 May 2004 00:12:33 -0400 Sender: green@green.homeunix.org cc: freebsd-current@FreeBSD.org cc: Pawel Jakub Dawidek Subject: Re: LOR: /sys/ufs/ffs/ffs_snapshot.c:1893 /sys/vm/vm_map.c:2206 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 04:12:34 -0000 Robert Watson wrote: > > On Fri, 30 Apr 2004, Brian Fundakowski Feldman wrote: > > > I haven't seen it myself, but it seems like it's only going to happen > > sometimes (when a full page is freed). There's really no technical > > reason you'd ever want to do a free(9) with locks held, so I suggest > > fixing it in the straightforward way. > > While I sympathize with this point, I don't think it's realistic to assert > that free() will never be called while helding a lock. Once the mbuf > allocator backs into regular malloc() and free(); the network stack relies > on being able to perform wait-free allocation and free while locks are > held, since it uses locks as a light-weight form of reference-counting. Well, there's locks, and then there's mutexes; the vnode interlock is a mutex that is really, really not supposed to be slept while holding. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\