summaryrefslogtreecommitdiffstats
path: root/block/bfq-iosched.c
diff options
context:
space:
mode:
authorAngelo Ruocco <angelo.ruocco.90@gmail.com>2019-04-08 11:35:34 -0400
committerJens Axboe <axboe@kernel.dk>2019-04-08 12:05:43 -0400
commit636b8fe86bede8c9f797365986b8406ff2183f13 (patch)
tree41abc32d7167012dce42755cf1f67aa629126be5 /block/bfq-iosched.c
parentd0b0a81acbd809228b57fb27a89028ecd0fc542a (diff)
block, bfq: fix some typos in comments
Some of the comments in the bfq files had typos. This patch fixes them. Signed-off-by: Angelo Ruocco <angeloruocco90@gmail.com> Signed-off-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.c')
-rw-r--r--block/bfq-iosched.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
index ceb06abd73df..bcaa4bde3961 100644
--- a/block/bfq-iosched.c
+++ b/block/bfq-iosched.c
@@ -189,7 +189,7 @@ static const int bfq_default_max_budget = 16 * 1024;
189/* 189/*
190 * When a sync request is dispatched, the queue that contains that 190 * When a sync request is dispatched, the queue that contains that
191 * request, and all the ancestor entities of that queue, are charged 191 * request, and all the ancestor entities of that queue, are charged
192 * with the number of sectors of the request. In constrast, if the 192 * with the number of sectors of the request. In contrast, if the
193 * request is async, then the queue and its ancestor entities are 193 * request is async, then the queue and its ancestor entities are
194 * charged with the number of sectors of the request, multiplied by 194 * charged with the number of sectors of the request, multiplied by
195 * the factor below. This throttles the bandwidth for async I/O, 195 * the factor below. This throttles the bandwidth for async I/O,
@@ -217,7 +217,7 @@ const int bfq_timeout = HZ / 8;
217 * queue merging. 217 * queue merging.
218 * 218 *
219 * As can be deduced from the low time limit below, queue merging, if 219 * As can be deduced from the low time limit below, queue merging, if
220 * successful, happens at the very beggining of the I/O of the involved 220 * successful, happens at the very beginning of the I/O of the involved
221 * cooperating processes, as a consequence of the arrival of the very 221 * cooperating processes, as a consequence of the arrival of the very
222 * first requests from each cooperator. After that, there is very 222 * first requests from each cooperator. After that, there is very
223 * little chance to find cooperators. 223 * little chance to find cooperators.
@@ -441,7 +441,7 @@ void bfq_schedule_dispatch(struct bfq_data *bfqd)
441 441
442/* 442/*
443 * Lifted from AS - choose which of rq1 and rq2 that is best served now. 443 * Lifted from AS - choose which of rq1 and rq2 that is best served now.
444 * We choose the request that is closesr to the head right now. Distance 444 * We choose the request that is closer to the head right now. Distance
445 * behind the head is penalized and only allowed to a certain extent. 445 * behind the head is penalized and only allowed to a certain extent.
446 */ 446 */
447static struct request *bfq_choose_req(struct bfq_data *bfqd, 447static struct request *bfq_choose_req(struct bfq_data *bfqd,
@@ -989,7 +989,7 @@ static unsigned int bfq_wr_duration(struct bfq_data *bfqd)
989 * of several files 989 * of several files
990 * mplayer took 23 seconds to start, if constantly weight-raised. 990 * mplayer took 23 seconds to start, if constantly weight-raised.
991 * 991 *
992 * As for higher values than that accomodating the above bad 992 * As for higher values than that accommodating the above bad
993 * scenario, tests show that higher values would often yield 993 * scenario, tests show that higher values would often yield
994 * the opposite of the desired result, i.e., would worsen 994 * the opposite of the desired result, i.e., would worsen
995 * responsiveness by allowing non-interactive applications to 995 * responsiveness by allowing non-interactive applications to
@@ -2636,8 +2636,8 @@ static bool bfq_allow_bio_merge(struct request_queue *q, struct request *rq,
2636 /* 2636 /*
2637 * bic still points to bfqq, then it has not yet been 2637 * bic still points to bfqq, then it has not yet been
2638 * redirected to some other bfq_queue, and a queue 2638 * redirected to some other bfq_queue, and a queue
2639 * merge beween bfqq and new_bfqq can be safely 2639 * merge between bfqq and new_bfqq can be safely
2640 * fulfillled, i.e., bic can be redirected to new_bfqq 2640 * fulfilled, i.e., bic can be redirected to new_bfqq
2641 * and bfqq can be put. 2641 * and bfqq can be put.
2642 */ 2642 */
2643 bfq_merge_bfqqs(bfqd, bfqd->bio_bic, bfqq, 2643 bfq_merge_bfqqs(bfqd, bfqd->bio_bic, bfqq,
@@ -3089,7 +3089,7 @@ static void __bfq_bfqq_expire(struct bfq_data *bfqd, struct bfq_queue *bfqq)
3089 /* 3089 /*
3090 * All in-service entities must have been properly deactivated 3090 * All in-service entities must have been properly deactivated
3091 * or requeued before executing the next function, which 3091 * or requeued before executing the next function, which
3092 * resets all in-service entites as no more in service. 3092 * resets all in-service entities as no more in service.
3093 */ 3093 */
3094 __bfq_bfqd_reset_in_service(bfqd); 3094 __bfq_bfqd_reset_in_service(bfqd);
3095} 3095}
@@ -5632,7 +5632,7 @@ static void bfq_prepare_request(struct request *rq, struct bio *bio)
5632 * preparation is that, after the prepare_request hook is invoked for 5632 * preparation is that, after the prepare_request hook is invoked for
5633 * rq, rq may still be transformed into a request with no icq, i.e., a 5633 * rq, rq may still be transformed into a request with no icq, i.e., a
5634 * request not associated with any queue. No bfq hook is invoked to 5634 * request not associated with any queue. No bfq hook is invoked to
5635 * signal this tranformation. As a consequence, should these 5635 * signal this transformation. As a consequence, should these
5636 * preparation operations be performed when the prepare_request hook 5636 * preparation operations be performed when the prepare_request hook
5637 * is invoked, and should rq be transformed one moment later, bfq 5637 * is invoked, and should rq be transformed one moment later, bfq
5638 * would end up in an inconsistent state, because it would have 5638 * would end up in an inconsistent state, because it would have