From owner-cvs-src@FreeBSD.ORG Thu Jul 27 19:58:18 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 E2C3F16A4DE; Thu, 27 Jul 2006 19:58:18 +0000 (UTC) (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 9F11543D46; Thu, 27 Jul 2006 19:58:18 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k6RJwIjk014632; Thu, 27 Jul 2006 19:58:18 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k6RJwIeW014631; Thu, 27 Jul 2006 19:58:18 GMT (envelope-from jhb) Message-Id: <200607271958.k6RJwIeW014631@repoman.freebsd.org> From: John Baldwin Date: Thu, 27 Jul 2006 19:58:18 +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 src/sys/sys mutex.h 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: Thu, 27 Jul 2006 19:58:19 -0000 jhb 2006-07-27 19:58:18 UTC FreeBSD src repository Modified files: sys/kern kern_mutex.c sys/sys mutex.h Log: Write a magic value into mtx_lock when destroying a mutex that will force all other mtx_lock() operations to block. Previously, when the mutex was destroyed, it would still have a valid value in mtx_lock(): either the unowned cookie, which would allow a subsequent mtx_lock() to succeed, or a pointer to the thread who destroyed the mutex if the mutex was locked when it was destroyed. MFC after: 3 days Revision Changes Path 1.174 +11 -0 src/sys/kern/kern_mutex.c 1.84 +5 -0 src/sys/sys/mutex.h