Commit b53b072c authored by Baolin Wang's avatar Baolin Wang Committed by Jens Axboe

blk-throttle: Fix some comments' typos

Fix some comments' typos.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linux.alibaba.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent aa67db24
...@@ -150,7 +150,7 @@ struct throtl_grp { ...@@ -150,7 +150,7 @@ struct throtl_grp {
/* user configured IOPS limits */ /* user configured IOPS limits */
unsigned int iops_conf[2][LIMIT_CNT]; unsigned int iops_conf[2][LIMIT_CNT];
/* Number of bytes disptached in current slice */ /* Number of bytes dispatched in current slice */
uint64_t bytes_disp[2]; uint64_t bytes_disp[2];
/* Number of bio's dispatched in current slice */ /* Number of bio's dispatched in current slice */
unsigned int io_disp[2]; unsigned int io_disp[2];
...@@ -852,7 +852,7 @@ static inline void throtl_trim_slice(struct throtl_grp *tg, bool rw) ...@@ -852,7 +852,7 @@ static inline void throtl_trim_slice(struct throtl_grp *tg, bool rw)
/* /*
* A bio has been dispatched. Also adjust slice_end. It might happen * A bio has been dispatched. Also adjust slice_end. It might happen
* that initially cgroup limit was very low resulting in high * that initially cgroup limit was very low resulting in high
* slice_end, but later limit was bumped up and bio was dispached * slice_end, but later limit was bumped up and bio was dispatched
* sooner, then we need to reduce slice_end. A high bogus slice_end * sooner, then we need to reduce slice_end. A high bogus slice_end
* is bad because it does not allow new slice to start. * is bad because it does not allow new slice to start.
*/ */
...@@ -1082,7 +1082,7 @@ static void throtl_add_bio_tg(struct bio *bio, struct throtl_qnode *qn, ...@@ -1082,7 +1082,7 @@ static void throtl_add_bio_tg(struct bio *bio, struct throtl_qnode *qn,
* If @tg doesn't currently have any bios queued in the same * If @tg doesn't currently have any bios queued in the same
* direction, queueing @bio can change when @tg should be * direction, queueing @bio can change when @tg should be
* dispatched. Mark that @tg was empty. This is automatically * dispatched. Mark that @tg was empty. This is automatically
* cleaered on the next tg_update_disptime(). * cleared on the next tg_update_disptime().
*/ */
if (!sq->nr_queued[rw]) if (!sq->nr_queued[rw])
tg->flags |= THROTL_TG_WAS_EMPTY; tg->flags |= THROTL_TG_WAS_EMPTY;
...@@ -1303,7 +1303,7 @@ static void throtl_pending_timer_fn(struct timer_list *t) ...@@ -1303,7 +1303,7 @@ static void throtl_pending_timer_fn(struct timer_list *t)
} }
} }
} else { } else {
/* reached the top-level, queue issueing */ /* reached the top-level, queue issuing */
queue_work(kthrotld_workqueue, &td->dispatch_work); queue_work(kthrotld_workqueue, &td->dispatch_work);
} }
out_unlock: out_unlock:
...@@ -1314,8 +1314,8 @@ static void throtl_pending_timer_fn(struct timer_list *t) ...@@ -1314,8 +1314,8 @@ static void throtl_pending_timer_fn(struct timer_list *t)
* blk_throtl_dispatch_work_fn - work function for throtl_data->dispatch_work * blk_throtl_dispatch_work_fn - work function for throtl_data->dispatch_work
* @work: work item being executed * @work: work item being executed
* *
* This function is queued for execution when bio's reach the bio_lists[] * This function is queued for execution when bios reach the bio_lists[]
* of throtl_data->service_queue. Those bio's are ready and issued by this * of throtl_data->service_queue. Those bios are ready and issued by this
* function. * function.
*/ */
static void blk_throtl_dispatch_work_fn(struct work_struct *work) static void blk_throtl_dispatch_work_fn(struct work_struct *work)
...@@ -2230,7 +2230,7 @@ bool blk_throtl_bio(struct bio *bio) ...@@ -2230,7 +2230,7 @@ bool blk_throtl_bio(struct bio *bio)
/* /*
* @bio passed through this layer without being throttled. * @bio passed through this layer without being throttled.
* Climb up the ladder. If we''re already at the top, it * Climb up the ladder. If we're already at the top, it
* can be executed directly. * can be executed directly.
*/ */
qn = &tg->qnode_on_parent[rw]; qn = &tg->qnode_on_parent[rw];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment