From owner-freebsd-current@FreeBSD.ORG Fri Apr 30 19:13:25 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE67616A4CE; Fri, 30 Apr 2004 19:13:25 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51E2A43D1F; Fri, 30 Apr 2004 19:13:25 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i412DHZv064426; Fri, 30 Apr 2004 22:13:17 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i412DHVp064423; Fri, 30 Apr 2004 22:13:17 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 30 Apr 2004 22:13:17 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Brian Fundakowski Feldman In-Reply-To: <200404301437.i3UEbnvM076898@green.homeunix.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 02:13:26 -0000 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. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research