From owner-freebsd-arch@FreeBSD.ORG Thu Nov 22 20:00:04 2007 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 452A816A417; Thu, 22 Nov 2007 20:00:02 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 43CA913C447; Thu, 22 Nov 2007 20:00:02 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 50A601A4D80; Thu, 22 Nov 2007 12:00:01 -0800 (PST) Date: Thu, 22 Nov 2007 12:00:01 -0800 From: Alfred Perlstein To: Max Laier Message-ID: <20071122200001.GI44563@elvis.mu.org> References: <20071121222319.GX44563@elvis.mu.org> <200711221641.02484.max@love2party.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200711221641.02484.max@love2party.net> User-Agent: Mutt/1.4.2.3i Cc: attilio@freebsd.org, Stephan Uphoff , freebsd-arch@freebsd.org Subject: Re: rwlocks, correctness over speed. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Nov 2007 20:00:04 -0000 * Max Laier [071122 07:46] wrote: > On Wednesday 21 November 2007, Alfred Perlstein wrote: > > In summary, I am proposing (temporarily) making read-recursion > > on rwlocks not supported in order to avoid livelock due to writer > > starvation. > > > > rwlocks are already used in places that do recursive reads. The one place Max, I think what will happen is that we will mark further uses or read locks as recursive as "not supported", perhaps witness can temporarily grow a flag to ignore recursive read ops until the existing infrastructure is fixed. I will not get into alternatives for pfil, as it seems you've mostly worked it out. -Alfred