From owner-cvs-all@FreeBSD.ORG Fri Apr 14 19:51:51 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 1FA4316A400; Fri, 14 Apr 2006 19:51:51 +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 D07FF43D45; Fri, 14 Apr 2006 19:51:50 +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 k3EJpowN069775; Fri, 14 Apr 2006 19:51:50 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3EJpomX069769; Fri, 14 Apr 2006 19:51:50 GMT (envelope-from jhb) Message-Id: <200604141951.k3EJpomX069769@repoman.freebsd.org> From: John Baldwin Date: Fri, 14 Apr 2006 19:51: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/sys/kern kern_mutex.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: Fri, 14 Apr 2006 19:51:51 -0000 jhb 2006-04-14 19:51:50 UTC FreeBSD src repository Modified files: sys/kern kern_mutex.c Log: Mark the thread pointer used during an adaptive spin volatile so that the compiler doesn't decide to cache td_state. Cachine the state would cause the spinning thread to not notice when the owning thread stopped executing (if it was preempted for example) which could result in livelock. Revision Changes Path 1.168 +1 -1 src/sys/kern/kern_mutex.c