Home
last modified time | relevance | path

Searched refs:task (Results 1 – 4 of 4) sorted by relevance

/block/
Dblk-ioc.c200 void exit_io_context(struct task_struct *task) in exit_io_context() argument
204 task_lock(task); in exit_io_context()
205 ioc = task->io_context; in exit_io_context()
206 task->io_context = NULL; in exit_io_context()
207 task_unlock(task); in exit_io_context()
234 int create_task_io_context(struct task_struct *task, gfp_t gfp_flags, int node) in create_task_io_context() argument
260 task_lock(task); in create_task_io_context()
261 if (!task->io_context && in create_task_io_context()
262 (task == current || !(task->flags & PF_EXITING))) in create_task_io_context()
263 task->io_context = ioc; in create_task_io_context()
[all …]
Dioprio.c32 int set_task_ioprio(struct task_struct *task, int ioprio) in set_task_ioprio() argument
39 tcred = __task_cred(task); in set_task_ioprio()
47 err = security_task_setioprio(task, ioprio); in set_task_ioprio()
51 ioc = get_task_io_context(task, GFP_ATOMIC, NUMA_NO_NODE); in set_task_ioprio()
Dblk-cgroup.c1139 struct task_struct *task; in blkcg_can_attach() local
1145 cgroup_taskset_for_each(task, dst_css, tset) { in blkcg_can_attach()
1146 task_lock(task); in blkcg_can_attach()
1147 ioc = task->io_context; in blkcg_can_attach()
1150 task_unlock(task); in blkcg_can_attach()
Dblk.h263 int create_task_io_context(struct task_struct *task, gfp_t gfp_mask, int node);