From owner-cvs-src@FreeBSD.ORG Mon Mar 31 02:55:50 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3AC61065672; Mon, 31 Mar 2008 02:55:50 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AA9BA8FC14; Mon, 31 Mar 2008 02:55:50 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2V2toSd053105; Mon, 31 Mar 2008 02:55:50 GMT (envelope-from davidxu@repoman.freebsd.org) Received: (from davidxu@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2V2toJl053104; Mon, 31 Mar 2008 02:55:50 GMT (envelope-from davidxu) Message-Id: <200803310255.m2V2toJl053104@repoman.freebsd.org> From: David Xu Date: Mon, 31 Mar 2008 02:55:50 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libthr/thread thr_cond.c thr_private.h thr_rwlock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 31 Mar 2008 02:55:51 -0000 davidxu 2008-03-31 02:55:50 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_cond.c thr_private.h thr_rwlock.c Log: Rewrite rwlock to user atomic operations to change rwlock state, this eliminates internal mutex lock contention when most rwlock operations are read. Orignal patch provided by: jeff Revision Changes Path 1.24 +53 -0 src/lib/libthr/thread/thr_cond.c 1.86 +5 -1 src/lib/libthr/thread/thr_private.h 1.11 +222 -139 src/lib/libthr/thread/thr_rwlock.c