Home
last modified time | relevance | path

Searched refs:ioc (Results 1 – 9 of 9) sorted by relevance

/block/
Dblk-ioc.c26 void get_io_context(struct io_context *ioc) in get_io_context() argument
28 BUG_ON(atomic_long_read(&ioc->refcount) <= 0); in get_io_context()
29 atomic_long_inc(&ioc->refcount); in get_io_context()
62 struct io_context *ioc = icq->ioc; in ioc_destroy_icq() local
66 lockdep_assert_held(&ioc->lock); in ioc_destroy_icq()
68 radix_tree_delete(&ioc->icq_tree, icq->q->id); in ioc_destroy_icq()
77 if (rcu_access_pointer(ioc->icq_hint) == icq) in ioc_destroy_icq()
78 rcu_assign_pointer(ioc->icq_hint, NULL); in ioc_destroy_icq()
96 struct io_context *ioc = container_of(work, struct io_context, in ioc_release_fn() local
106 spin_lock_irqsave_nested(&ioc->lock, flags, 1); in ioc_release_fn()
[all …]
Dblk-iocost.c392 struct ioc { struct
432 struct ioc *ioc; argument
611 static struct ioc *rqos_to_ioc(struct rq_qos *rqos) in rqos_to_ioc()
613 return container_of(rqos, struct ioc, rqos); in rqos_to_ioc()
616 static struct ioc *q_to_ioc(struct request_queue *q) in q_to_ioc()
629 static const char __maybe_unused *ioc_name(struct ioc *ioc) in ioc_name() argument
631 return q_name(ioc->rqos.q); in ioc_name()
682 static void ioc_refresh_period_us(struct ioc *ioc) in ioc_refresh_period_us() argument
686 lockdep_assert_held(&ioc->lock); in ioc_refresh_period_us()
689 if (ioc->params.qos[QOS_RLAT] >= ioc->params.qos[QOS_WLAT]) { in ioc_refresh_period_us()
[all …]
Dioprio.c39 struct io_context *ioc; in set_task_ioprio() local
55 ioc = get_task_io_context(task, GFP_ATOMIC, NUMA_NO_NODE); in set_task_ioprio()
56 if (ioc) { in set_task_ioprio()
57 ioc->ioprio = ioprio; in set_task_ioprio()
58 put_io_context(ioc); in set_task_ioprio()
Dblk-mq-sched.c38 struct io_context *ioc; in blk_mq_sched_assign_ioc() local
44 ioc = current->io_context; in blk_mq_sched_assign_ioc()
45 if (!ioc) in blk_mq_sched_assign_ioc()
49 icq = ioc_lookup_icq(ioc, q); in blk_mq_sched_assign_ioc()
53 icq = ioc_create_icq(ioc, q, GFP_ATOMIC); in blk_mq_sched_assign_ioc()
57 get_io_context(icq->ioc); in blk_mq_sched_assign_ioc()
Dblk.h280 void get_io_context(struct io_context *ioc);
281 struct io_cq *ioc_lookup_icq(struct io_context *ioc, struct request_queue *q);
282 struct io_cq *ioc_create_icq(struct io_context *ioc, struct request_queue *q,
DMakefile7 blk-flush.o blk-settings.o blk-ioc.o blk-map.o \
Dblk-cgroup.c1284 struct io_context *ioc; in blkcg_can_attach() local
1290 ioc = task->io_context; in blkcg_can_attach()
1291 if (ioc && atomic_read(&ioc->nr_tasks) > 1) in blkcg_can_attach()
Dbfq-iosched.c400 struct io_context *ioc, in bfq_bic_lookup() argument
403 if (ioc) { in bfq_bic_lookup()
408 icq = icq_to_bic(ioc_lookup_icq(ioc, q)); in bfq_bic_lookup()
5012 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change()
5230 if (atomic_read(&bic->icq.ioc->active_ref) == 0 || in bfq_update_has_short_ttime()
Dblk-mq.c520 put_io_context(rq->elv.icq->ioc); in blk_mq_free_request()