aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Carroll <aaronc@gelato.unsw.edu.au>2007-12-05 05:06:50 -0500
committerJens Axboe <jens.axboe@oracle.com>2007-12-18 02:29:28 -0500
commit8896f3c039b0834ba695d154299b724ee5710b97 (patch)
treed6b42262bea00350d2a2facf914542606e795ae6
parent24bb8fb99a062213424d3e88842eb07f693378be (diff)
as-iosched: fix incorrect comments
Two comments refer to deadlines applying to reads only. This is not the case. Signed-off-by: Aaron Carroll <aaronc@gelato.unsw.edu.au> Acked-by: Nick Piggin <npiggin@suse.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--block/as-iosched.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/as-iosched.c b/block/as-iosched.c
index dc715a562e14..4513fc59c9da 100644
--- a/block/as-iosched.c
+++ b/block/as-iosched.c
@@ -880,7 +880,7 @@ static void as_remove_queued_request(struct request_queue *q,
880} 880}
881 881
882/* 882/*
883 * as_fifo_expired returns 0 if there are no expired reads on the fifo, 883 * as_fifo_expired returns 0 if there are no expired requests on the fifo,
884 * 1 otherwise. It is ratelimited so that we only perform the check once per 884 * 1 otherwise. It is ratelimited so that we only perform the check once per
885 * `fifo_expire' interval. Otherwise a large number of expired requests 885 * `fifo_expire' interval. Otherwise a large number of expired requests
886 * would create a hopeless seekstorm. 886 * would create a hopeless seekstorm.
@@ -1159,7 +1159,7 @@ static void as_add_request(struct request_queue *q, struct request *rq)
1159 as_add_rq_rb(ad, rq); 1159 as_add_rq_rb(ad, rq);
1160 1160
1161 /* 1161 /*
1162 * set expire time (only used for reads) and add to fifo list 1162 * set expire time and add to fifo list
1163 */ 1163 */
1164 rq_set_fifo_time(rq, jiffies + ad->fifo_expire[data_dir]); 1164 rq_set_fifo_time(rq, jiffies + ad->fifo_expire[data_dir]);
1165 list_add_tail(&rq->queuelist, &ad->fifo_list[data_dir]); 1165 list_add_tail(&rq->queuelist, &ad->fifo_list[data_dir]);