From owner-cvs-all@FreeBSD.ORG Fri Jan 27 22:42:13 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7038C16A46A; Fri, 27 Jan 2006 22:42:13 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EB7F43D45; Fri, 27 Jan 2006 22:42:13 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0RMgCtt062995; Fri, 27 Jan 2006 22:42:12 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0RMgCeJ062994; Fri, 27 Jan 2006 22:42:12 GMT (envelope-from jhb) Message-Id: <200601272242.k0RMgCeJ062994@repoman.freebsd.org> From: John Baldwin Date: Fri, 27 Jan 2006 22:42:12 +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/sys/kern kern_mutex.c subr_turnstile.c src/sys/sys turnstile.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jan 2006 22:42:14 -0000 jhb 2006-01-27 22:42:12 UTC FreeBSD src repository Modified files: sys/kern kern_mutex.c subr_turnstile.c sys/sys turnstile.h Log: - Add support for having both a shared and exclusive queue of threads in each turnstile. Also, allow for the owner thread pointer of a turnstile to be NULL. This is needed for the upcoming reader/writer lock implementation. - Add a new ddb command 'show turnstile' that will look up the turnstile associated with the given lock argument and display useful information like the list of threads blocked on each queue, etc. If there isn't an active turnstile for a lock at the specified address, then the function will see if there is an active turnstile at the specified address and display info about it if so. - Adjust the mutex code to handle the turnstile API changes. Tested on: i386 (all), alpha, amd64, sparc64 (1 and 3) Revision Changes Path 1.167 +6 -5 src/sys/kern/kern_mutex.c 1.156 +174 -47 src/sys/kern/subr_turnstile.c 1.9 +13 -5 src/sys/sys/turnstile.h