Lines Matching refs:io_context
21 * get_io_context - increment reference count to io_context
22 * @ioc: io_context to get
26 void get_io_context(struct io_context *ioc)
62 struct io_context *ioc = icq->ioc;
97 struct io_context *ioc = container_of(work, struct io_context,
136 * put_io_context - put a reference of io_context
137 * @ioc: io_context to put
142 void put_io_context(struct io_context *ioc)
177 void put_io_context_active(struct io_context *ioc)
201 struct io_context *ioc;
204 ioc = task->io_context;
205 task->io_context = NULL;
220 struct io_context *ioc = icq->ioc;
252 struct io_context *ioc;
277 if (!task->io_context &&
279 task->io_context = ioc;
283 ret = task->io_context ? 0 : -EBUSY;
291 * get_task_io_context - get io_context of a task
296 * Return io_context of @task. If it doesn't exist, it is created with
297 * @gfp_flags and @node. The returned io_context has its reference count
301 * %current->io_context + get_io_context() for %current.
303 struct io_context *get_task_io_context(struct task_struct *task,
306 struct io_context *ioc;
312 ioc = task->io_context;
326 * @ioc: the associated io_context
332 struct io_cq *ioc_lookup_icq(struct io_context *ioc, struct request_queue *q)
362 * @ioc: io_context of interest
372 struct io_cq *ioc_create_icq(struct io_context *ioc, struct request_queue *q,
419 sizeof(struct io_context), 0, SLAB_PANIC, NULL);