Skip to content

Commit

Permalink
blk-mq: correct a few wrong/bad comments
Browse files Browse the repository at this point in the history
Just grammar or spelling errors, nothing major.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Aug 22, 2014
1 parent 16f408d commit a68aafa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ static int blk_mq_init_hw_queues(struct request_queue *q,
hctx->tags = set->tags[i];

/*
* Allocate space for all possible cpus to avoid allocation in
* Allocate space for all possible cpus to avoid allocation at
* runtime
*/
hctx->ctxs = kmalloc_node(nr_cpu_ids * sizeof(void *),
Expand Down Expand Up @@ -1668,8 +1668,8 @@ static void blk_mq_map_swqueue(struct request_queue *q)

queue_for_each_hw_ctx(q, hctx, i) {
/*
* If not software queues are mapped to this hardware queue,
* disable it and free the request entries
* If no software queues are mapped to this hardware queue,
* disable it and free the request entries.
*/
if (!hctx->nr_ctx) {
struct blk_mq_tag_set *set = q->tag_set;
Expand Down

0 comments on commit a68aafa

Please sign in to comment.