From owner-svn-src-head@FreeBSD.ORG Thu Feb 26 22:26:07 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4A5A106564A; Thu, 26 Feb 2009 22:26:07 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B33CE8FC0C; Thu, 26 Feb 2009 22:26:07 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QMQ7Ag039990; Thu, 26 Feb 2009 22:26:07 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1QMQ7oD039989; Thu, 26 Feb 2009 22:26:07 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <200902262226.n1QMQ7oD039989@svn.freebsd.org> From: Alexander Motin Date: Thu, 26 Feb 2009 22:26:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189093 - head/sys/dev/ata X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 22:26:08 -0000 Author: mav Date: Thu Feb 26 22:26:07 2009 New Revision: 189093 URL: http://svn.freebsd.org/changeset/base/189093 Log: Restore mtx_lock() call on ata_timeout(), dropped (I think accidentally) during commit 3 years ago. Modified: head/sys/dev/ata/ata-queue.c Modified: head/sys/dev/ata/ata-queue.c ============================================================================== --- head/sys/dev/ata/ata-queue.c Thu Feb 26 21:43:15 2009 (r189092) +++ head/sys/dev/ata/ata-queue.c Thu Feb 26 22:26:07 2009 (r189093) @@ -497,6 +497,7 @@ ata_timeout(struct ata_request *request) //request->flags |= ATA_R_DEBUG; ATA_DEBUG_RQ(request, "timeout"); + mtx_lock(&ch->state_mtx); /* * if we have an ATA_ACTIVE request running, we flag the request * ATA_R_TIMEOUT so ata_finish will handle it correctly