From owner-cvs-src@FreeBSD.ORG Thu Jan 8 07:40:03 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EA3916A4CE; Thu, 8 Jan 2004 07:40:03 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0233443D3F; Thu, 8 Jan 2004 07:40:02 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i08Fe1iw010029; Thu, 8 Jan 2004 10:40:01 -0500 (EST) Date: Thu, 8 Jan 2004 10:40:01 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org In-Reply-To: <200401081537.i08Fb9rW030254@repoman.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: cvs commit: src/lib/libpthread/thread thr_create.cthr_private.h thr_rwlock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2004 15:40:03 -0000 On Thu, 8 Jan 2004, Daniel Eischen wrote: > deischen 2004/01/08 07:37:09 PST > > FreeBSD src repository > > Modified files: > lib/libpthread/thread thr_create.c thr_private.h thr_rwlock.c > Log: > Add a simple work-around for deadlocking on recursive read locks > on a rwlock while there are writers waiting. We normally favor > writers but when a reader already has at least one other read lock, > we favor the reader. We don't track all the rwlocks owned by a > thread, nor all the threads that own a rwlock -- we just keep > a count of all the read locks owned by a thread. Reviewed by: davidxu