Re: [PROBLEM] Badness in cfq_account_completion at drivers/block/cfq-iosched.c:916

From: Jens Axboe
Date: Tue Jan 11 2005 - 04:08:45 EST


On Tue, Jan 11 2005, Srihari Vijayaraghavan wrote:
> I see zillion of these error messages in vanilla
> 2.6.10:
> Jan 11 16:10:13 linux kernel: [<c0220ee0>]
> scsi_end_request+0xa9/0xd6

[snip]

Does this fix it?

===== drivers/block/cfq-iosched.c 1.17 vs edited =====
--- 1.17/drivers/block/cfq-iosched.c 2004-12-24 09:12:58 +01:00
+++ edited/drivers/block/cfq-iosched.c 2005-01-11 10:03:17 +01:00
@@ -622,8 +622,10 @@
cfq_sort_rr_list(cfqq, 0);
}

- crq->accounted = 0;
- cfqq->cfqd->rq_in_driver--;
+ if (crq->accounted) {
+ crq->accounted = 0;
+ cfqq->cfqd->rq_in_driver--;
+ }
}
list_add(&rq->queuelist, &q->queue_head);
}

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/