Lines Matching defs:node
2398 int node;
2400 node = blk_mq_hw_queue_to_node(&set->map[HCTX_TYPE_DEFAULT], hctx_idx);
2401 if (node == NUMA_NO_NODE)
2402 node = set->numa_node;
2404 tags = blk_mq_init_tags(nr_tags, reserved_tags, node, flags);
2410 node);
2418 node);
2429 unsigned int hctx_idx, int node)
2434 ret = set->ops->init_request(set, rq, hctx_idx, node);
2448 int node;
2450 node = blk_mq_hw_queue_to_node(&set->map[HCTX_TYPE_DEFAULT], hctx_idx);
2451 if (node == NUMA_NO_NODE)
2452 node = set->numa_node;
2474 page = alloc_pages_node(node,
2504 if (blk_mq_init_request(set, rq, hctx_idx, node)) {
2557 static int blk_mq_hctx_notify_offline(unsigned int cpu, struct hlist_node *node)
2559 struct blk_mq_hw_ctx *hctx = hlist_entry_safe(node,
2590 static int blk_mq_hctx_notify_online(unsigned int cpu, struct hlist_node *node)
2592 struct blk_mq_hw_ctx *hctx = hlist_entry_safe(node,
2605 static int blk_mq_hctx_notify_dead(unsigned int cpu, struct hlist_node *node)
2612 hctx = hlist_entry_safe(node, struct blk_mq_hw_ctx, cpuhp_dead);
2760 int node)
2765 hctx = kzalloc_node(blk_mq_hw_ctx_size(set), gfp, node);
2769 if (!zalloc_cpumask_var_node(&hctx->cpumask, gfp, node))
2774 if (node == NUMA_NO_NODE)
2775 node = set->numa_node;
2776 hctx->numa_node = node;
2791 gfp, node);
2796 gfp, node))
2845 * Set local node, IFF we have more than one hw queue. If
2846 * not, we remain on the home node of the device
3182 int hctx_idx, int node)
3189 if (tmp->numa_node == node) {
3199 hctx = blk_mq_alloc_hctx(q, set, node);
3239 int node;
3242 node = blk_mq_hw_queue_to_node(&set->map[HCTX_TYPE_DEFAULT], i);
3244 * If the hw queue has been mapped to another numa node,
3248 if (hctxs[i] && (hctxs[i]->numa_node == node))
3251 hctx = blk_mq_alloc_and_init_hctx(set, q, i, node);
3258 pr_warn("Allocate new hctx on node %d fails,\
3259 fallback to previous one on node %d\n",
3260 node, hctxs[i]->numa_node);
3660 struct list_head node;
3681 INIT_LIST_HEAD(&qe->node);
3684 list_add(&qe->node, head);
3707 list_for_each_entry(qe, head, node)
3716 list_del(&qe->node);