From 3a5f6750dffdc159cca886ff5e8725a8b4a3c7b5 Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Tue, 13 Mar 2007 20:31:56 +0000 Subject: [PATCH] (ata_completed): When REQUEST SENSE is automatically issued after a failed ATAPI request, do not clear the ATA_R_DEBUG flag. This allows a request marked as requiring debug traces to produce these traces also during the completion of the autosense processing. Reviewed by: sos MFC after: 2 weeks --- sys/dev/ata/ata-queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c index 97f476a5e680..9849443219a7 100644 --- a/sys/dev/ata/ata-queue.c +++ b/sys/dev/ata/ata-queue.c @@ -388,7 +388,7 @@ ata_completed(void *context, int dummy) request->donecount = 0; request->transfersize = sizeof(struct atapi_sense); request->timeout = 5; - request->flags &= (ATA_R_ATAPI | ATA_R_QUIET); + request->flags &= (ATA_R_ATAPI | ATA_R_QUIET | ATA_R_DEBUG); request->flags |= (ATA_R_READ | ATA_R_AT_HEAD | ATA_R_REQUEUE); ATA_DEBUG_RQ(request, "autoissue request sense"); ata_queue_request(request);