Home
last modified time | relevance | path

Searched refs:ioc (Results 1 – 8 of 8) 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()
97 struct io_context *ioc = container_of(work, struct io_context, in ioc_release_fn() local
99 spin_lock_irq(&ioc->lock); in ioc_release_fn()
[all …]
Dblk-iocost.c406 struct ioc { struct
464 struct ioc *ioc; argument
662 static struct ioc *rqos_to_ioc(struct rq_qos *rqos) in rqos_to_ioc()
664 return container_of(rqos, struct ioc, rqos); in rqos_to_ioc()
667 static struct ioc *q_to_ioc(struct request_queue *q) in q_to_ioc()
680 static const char __maybe_unused *ioc_name(struct ioc *ioc) in ioc_name() argument
682 return q_name(ioc->rqos.q); in ioc_name()
739 spin_lock_irqsave(&iocg->ioc->lock, *flags); in iocg_lock()
750 spin_unlock_irqrestore(&iocg->ioc->lock, *flags); in iocg_unlock()
759 static void ioc_refresh_margins(struct ioc *ioc) in ioc_refresh_margins() argument
[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.c24 struct io_context *ioc; in blk_mq_sched_assign_ioc() local
30 ioc = current->io_context; in blk_mq_sched_assign_ioc()
31 if (!ioc) in blk_mq_sched_assign_ioc()
35 icq = ioc_lookup_icq(ioc, q); in blk_mq_sched_assign_ioc()
39 icq = ioc_create_icq(ioc, q, GFP_ATOMIC); in blk_mq_sched_assign_ioc()
43 get_io_context(icq->ioc); in blk_mq_sched_assign_ioc()
Dblk.h325 void get_io_context(struct io_context *ioc);
326 struct io_cq *ioc_lookup_icq(struct io_context *ioc, struct request_queue *q);
327 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 \
Dbfq-iosched.c448 struct io_context *ioc, in bfq_bic_lookup() argument
451 if (ioc) { in bfq_bic_lookup()
456 icq = icq_to_bic(ioc_lookup_icq(ioc, q)); in bfq_bic_lookup()
5354 int ioprio = bic->icq.ioc->ioprio; in bfq_check_ioprio_change()
5748 if (atomic_read(&bic->icq.ioc->active_ref) == 0 || in bfq_update_has_short_ttime()
Dblk-mq.c529 put_io_context(rq->elv.icq->ioc); in blk_mq_free_request()