Lines Matching refs:io_context
24 * get_io_context - increment reference count to io_context
25 * @ioc: io_context to get
29 static void get_io_context(struct io_context *ioc)
59 static void ioc_exit_icqs(struct io_context *ioc)
75 struct io_context *ioc = icq->ioc;
114 struct io_context *ioc = container_of(work, struct io_context,
151 static bool ioc_delay_free(struct io_context *ioc)
189 static inline void ioc_exit_icqs(struct io_context *ioc)
192 static inline bool ioc_delay_free(struct io_context *ioc)
199 * put_io_context - put a reference of io_context
200 * @ioc: io_context to put
205 void put_io_context(struct io_context *ioc)
216 struct io_context *ioc;
219 ioc = task->io_context;
220 task->io_context = NULL;
229 static struct io_context *alloc_io_context(gfp_t gfp_flags, int node)
231 struct io_context *ioc;
270 if (unlikely(!task->io_context)) {
271 struct io_context *ioc;
284 if (task->io_context)
287 task->io_context = ioc;
289 task->io_context->ioprio = ioprio;
298 struct io_context *ioc = current->io_context;
305 tsk->io_context = ioc;
307 tsk->io_context = alloc_io_context(GFP_KERNEL, NUMA_NO_NODE);
308 if (!tsk->io_context)
310 tsk->io_context->ioprio = ioc->ioprio;
326 struct io_context *ioc = current->io_context;
365 struct io_context *ioc = current->io_context;
409 struct io_context *ioc = current->io_context;
418 if (current->io_context) {
420 ioc = current->io_context;
422 current->io_context = ioc;
450 sizeof(struct io_context), 0, SLAB_PANIC, NULL);