Home
last modified time | relevance | path

Searched refs:ctxs (Results 1 – 4 of 4) sorted by relevance

/block/
Dblk-mq-sysfs.c20 struct blk_mq_ctxs *ctxs = container_of(kobj, struct blk_mq_ctxs, kobj); in blk_mq_sysfs_release() local
22 free_percpu(ctxs->queue_ctx); in blk_mq_sysfs_release()
23 kfree(ctxs); in blk_mq_sysfs_release()
31 kobject_put(&ctx->ctxs->kobj); in blk_mq_ctx_sysfs_release()
44 kfree(hctx->ctxs); in blk_mq_hw_sysfs_release()
Dblk-mq.c1032 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in flush_busy_ctx()
1067 struct blk_mq_ctx *ctx = hctx->ctxs[bitnr]; in dispatch_rq_from_ctx()
2862 hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *), in blk_mq_alloc_hctx()
2864 if (!hctx->ctxs) in blk_mq_alloc_hctx()
2889 kfree(hctx->ctxs); in blk_mq_alloc_hctx()
3014 hctx->ctxs[hctx->nr_ctx++] = ctx; in blk_mq_map_swqueue()
3134 struct blk_mq_ctxs *ctxs; in blk_mq_alloc_ctxs() local
3137 ctxs = kzalloc(sizeof(*ctxs), GFP_KERNEL); in blk_mq_alloc_ctxs()
3138 if (!ctxs) in blk_mq_alloc_ctxs()
3141 ctxs->queue_ctx = alloc_percpu(struct blk_mq_ctx); in blk_mq_alloc_ctxs()
[all …]
Dblk-mq.h36 struct blk_mq_ctxs *ctxs; member
Dblk-mq-sched.c219 return hctx->ctxs[idx]; in blk_mq_next_ctx()