svn commit: r189093 - head/sys/dev/ata

Alexander Motin mav at FreeBSD.org
Thu Feb 26 14:26:08 PST 2009


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


More information about the svn-src-head mailing list