From 9b5b5b028ffa5f4003ae5850ce3d6f538c82ef9e Mon Sep 17 00:00:00 2001 From: mav Date: Thu, 26 Feb 2009 22:26:07 +0000 Subject: Restore mtx_lock() call on ata_timeout(), dropped (I think accidentally) during commit 3 years ago. --- sys/dev/ata/ata-queue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys') diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index b438467..283d77e 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -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 -- cgit v1.1