Lines Matching refs:nr_hw_queues
640 if (hctx_idx >= q->nr_hw_queues) in blk_mq_alloc_request_hctx()
1215 if (rq->q->nr_hw_queues == 1) { in blk_mq_complete_request_remote()
2173 if (hctx->queue->nr_hw_queues == 1) in blk_mq_hctx_next_cpu()
3018 (hctx->dispatch_busy && (q->nr_hw_queues == 1 || !is_sync))) { in blk_mq_submit_bio()
3751 unsigned int nr_hw_queues) in blk_mq_init_cpu_queues() argument
3774 if (nr_hw_queues > 1 && hctx->numa_node == NUMA_NO_NODE) in blk_mq_init_cpu_queues()
4192 for (i = 0; i < set->nr_hw_queues; i++) { in blk_mq_realloc_hw_ctxs()
4215 if (i != set->nr_hw_queues) { in blk_mq_realloc_hw_ctxs()
4216 j = q->nr_hw_queues; in blk_mq_realloc_hw_ctxs()
4219 q->nr_hw_queues = set->nr_hw_queues; in blk_mq_realloc_hw_ctxs()
4256 if (!q->nr_hw_queues) in blk_mq_init_allocated_queue()
4274 blk_mq_init_cpu_queues(q, set->nr_hw_queues); in blk_mq_init_allocated_queue()
4293 blk_mq_exit_hw_queues(q, set, set->nr_hw_queues); in blk_mq_exit_queue()
4310 for (i = 0; i < set->nr_hw_queues; i++) { in __blk_mq_alloc_rq_maps()
4373 set->map[HCTX_TYPE_DEFAULT].nr_queues = set->nr_hw_queues; in blk_mq_update_queue_map()
4408 if (set->nr_hw_queues >= new_nr_hw_queues) in blk_mq_realloc_tag_set_tags()
4417 memcpy(new_tags, set->tags, set->nr_hw_queues * in blk_mq_realloc_tag_set_tags()
4422 for (i = set->nr_hw_queues; i < new_nr_hw_queues; i++) { in blk_mq_realloc_tag_set_tags()
4424 while (--i >= set->nr_hw_queues) in blk_mq_realloc_tag_set_tags()
4432 set->nr_hw_queues = new_nr_hw_queues; in blk_mq_realloc_tag_set_tags()
4448 if (!set->nr_hw_queues) in blk_mq_alloc_tag_set()
4478 set->nr_hw_queues = 1; in blk_mq_alloc_tag_set()
4486 if (set->nr_maps == 1 && set->nr_hw_queues > nr_cpu_ids) in blk_mq_alloc_tag_set()
4487 set->nr_hw_queues = nr_cpu_ids; in blk_mq_alloc_tag_set()
4499 set->tags = kcalloc_node(set->nr_hw_queues, in blk_mq_alloc_tag_set()
4511 set->map[i].nr_queues = is_kdump_kernel() ? 1 : set->nr_hw_queues; in blk_mq_alloc_tag_set()
4549 set->nr_hw_queues = 1; in blk_mq_alloc_sq_tag_set()
4562 for (i = 0; i < set->nr_hw_queues; i++) in blk_mq_free_tag_set()
4715 int nr_hw_queues) in __blk_mq_update_nr_hw_queues() argument
4719 int prev_nr_hw_queues = set->nr_hw_queues; in __blk_mq_update_nr_hw_queues()
4724 if (set->nr_maps == 1 && nr_hw_queues > nr_cpu_ids) in __blk_mq_update_nr_hw_queues()
4725 nr_hw_queues = nr_cpu_ids; in __blk_mq_update_nr_hw_queues()
4726 if (nr_hw_queues < 1) in __blk_mq_update_nr_hw_queues()
4728 if (set->nr_maps == 1 && nr_hw_queues == set->nr_hw_queues) in __blk_mq_update_nr_hw_queues()
4747 if (blk_mq_realloc_tag_set_tags(set, nr_hw_queues) < 0) in __blk_mq_update_nr_hw_queues()
4755 if (q->nr_hw_queues != set->nr_hw_queues) { in __blk_mq_update_nr_hw_queues()
4759 nr_hw_queues, prev_nr_hw_queues); in __blk_mq_update_nr_hw_queues()
4760 for (; i < set->nr_hw_queues; i++) in __blk_mq_update_nr_hw_queues()
4763 set->nr_hw_queues = prev_nr_hw_queues; in __blk_mq_update_nr_hw_queues()
4783 for (i = set->nr_hw_queues; i < prev_nr_hw_queues; i++) in __blk_mq_update_nr_hw_queues()
4787 void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues) in blk_mq_update_nr_hw_queues() argument
4790 __blk_mq_update_nr_hw_queues(set, nr_hw_queues); in blk_mq_update_nr_hw_queues()