diff options
author | mav <mav@FreeBSD.org> | 2009-02-26 22:26:07 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-02-26 22:26:07 +0000 |
commit | 9b5b5b028ffa5f4003ae5850ce3d6f538c82ef9e (patch) | |
tree | 03fdf96115f16cd3b0ae8269ff201f6c9f417e77 /sys | |
parent | fa4082de198dcb08fb0798fdf991d3c880c765e3 (diff) | |
download | FreeBSD-src-9b5b5b028ffa5f4003ae5850ce3d6f538c82ef9e.zip FreeBSD-src-9b5b5b028ffa5f4003ae5850ce3d6f538c82ef9e.tar.gz |
Restore mtx_lock() call on ata_timeout(), dropped (I think accidentally)
during commit 3 years ago.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ata/ata-queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 |