From owner-cvs-all@FreeBSD.ORG Thu Sep 27 18:39:19 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6742416A419; Thu, 27 Sep 2007 18:39:19 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4626113C458; Thu, 27 Sep 2007 18:39:19 +0000 (UTC) (envelope-from jhb@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 l8RIdJIG050639; Thu, 27 Sep 2007 18:39:19 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8RIdJ7f050638; Thu, 27 Sep 2007 18:39:19 GMT (envelope-from jhb) Message-Id: <200709271839.l8RIdJ7f050638@repoman.freebsd.org> From: John Baldwin Date: Thu, 27 Sep 2007 18:39:19 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/kern subr_turnstile.c 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: Thu, 27 Sep 2007 18:39:19 -0000 jhb 2007-09-27 18:39:18 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern subr_turnstile.c Log: - Remove some debugging nits in the MFC of rwlocks that looked for cases where a reader blocked on a lock with no owner and just assert that it never happens like HEAD. - Actually set td->td_tsqueue to the sub-queue of a turnstile that a thread is actually enqueued to. Otherwise, the kernel would always think that threads were on the queue for exclusive (write) waiters (queue 0). Thus, if the priority of a thread waiting on a read lock was adjusted while it was waiting it could result in corrupting the queue of waiting threads. Revision Changes Path 1.152.2.9 +14 -17 src/sys/kern/subr_turnstile.c