Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2009 22:26:07 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189093 - head/sys/dev/ata
Message-ID:  <200902262226.n1QMQ7oD039989@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902262226.n1QMQ7oD039989>