diff options
-rw-r--r-- | block/blk-mq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index c9e89a8792e3..a0565bb20fd5 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -1580,7 +1580,7 @@ static int blk_mq_init_hw_queues(struct request_queue *q, | |||
1580 | hctx->tags = set->tags[i]; | 1580 | hctx->tags = set->tags[i]; |
1581 | 1581 | ||
1582 | /* | 1582 | /* |
1583 | * Allocate space for all possible cpus to avoid allocation in | 1583 | * Allocate space for all possible cpus to avoid allocation at |
1584 | * runtime | 1584 | * runtime |
1585 | */ | 1585 | */ |
1586 | hctx->ctxs = kmalloc_node(nr_cpu_ids * sizeof(void *), | 1586 | hctx->ctxs = kmalloc_node(nr_cpu_ids * sizeof(void *), |
@@ -1668,8 +1668,8 @@ static void blk_mq_map_swqueue(struct request_queue *q) | |||
1668 | 1668 | ||
1669 | queue_for_each_hw_ctx(q, hctx, i) { | 1669 | queue_for_each_hw_ctx(q, hctx, i) { |
1670 | /* | 1670 | /* |
1671 | * If not software queues are mapped to this hardware queue, | 1671 | * If no software queues are mapped to this hardware queue, |
1672 | * disable it and free the request entries | 1672 | * disable it and free the request entries. |
1673 | */ | 1673 | */ |
1674 | if (!hctx->nr_ctx) { | 1674 | if (!hctx->nr_ctx) { |
1675 | struct blk_mq_tag_set *set = q->tag_set; | 1675 | struct blk_mq_tag_set *set = q->tag_set; |