Lines Matching refs:io_context
29 static void get_io_context(struct io_context *ioc) in get_io_context()
59 static void ioc_exit_icqs(struct io_context *ioc) in ioc_exit_icqs()
75 struct io_context *ioc = icq->ioc; in ioc_destroy_icq()
114 struct io_context *ioc = container_of(work, struct io_context, in ioc_release_fn()
151 static bool ioc_delay_free(struct io_context *ioc) in ioc_delay_free()
189 static inline void ioc_exit_icqs(struct io_context *ioc) in ioc_exit_icqs()
192 static inline bool ioc_delay_free(struct io_context *ioc) in ioc_delay_free()
205 void put_io_context(struct io_context *ioc) in put_io_context()
216 struct io_context *ioc; in exit_io_context()
219 ioc = task->io_context; in exit_io_context()
220 task->io_context = NULL; in exit_io_context()
229 static struct io_context *alloc_io_context(gfp_t gfp_flags, int node) in alloc_io_context()
231 struct io_context *ioc; in alloc_io_context()
270 if (unlikely(!task->io_context)) { in set_task_ioprio()
271 struct io_context *ioc; in set_task_ioprio()
284 if (task->io_context) in set_task_ioprio()
287 task->io_context = ioc; in set_task_ioprio()
289 task->io_context->ioprio = ioprio; in set_task_ioprio()
298 struct io_context *ioc = current->io_context; in __copy_io()
305 tsk->io_context = ioc; in __copy_io()
307 tsk->io_context = alloc_io_context(GFP_KERNEL, NUMA_NO_NODE); in __copy_io()
308 if (!tsk->io_context) in __copy_io()
310 tsk->io_context->ioprio = ioc->ioprio; in __copy_io()
326 struct io_context *ioc = current->io_context; in ioc_lookup_icq()
365 struct io_context *ioc = current->io_context; in ioc_create_icq()
409 struct io_context *ioc = current->io_context; in ioc_find_get_icq()
418 if (current->io_context) { in ioc_find_get_icq()
420 ioc = current->io_context; in ioc_find_get_icq()
422 current->io_context = ioc; in ioc_find_get_icq()
450 sizeof(struct io_context), 0, SLAB_PANIC, NULL); in blk_ioc_init()