diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-cgroup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 5bcdfc10c23a..5a37188b559f 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -1127,15 +1127,15 @@ void blkcg_exit_queue(struct request_queue *q) | |||
1127 | * of the main cic data structures. For now we allow a task to change | 1127 | * of the main cic data structures. For now we allow a task to change |
1128 | * its cgroup only if it's the only owner of its ioc. | 1128 | * its cgroup only if it's the only owner of its ioc. |
1129 | */ | 1129 | */ |
1130 | static int blkcg_can_attach(struct cgroup_subsys_state *css, | 1130 | static int blkcg_can_attach(struct cgroup_taskset *tset) |
1131 | struct cgroup_taskset *tset) | ||
1132 | { | 1131 | { |
1133 | struct task_struct *task; | 1132 | struct task_struct *task; |
1133 | struct cgroup_subsys_state *dst_css; | ||
1134 | struct io_context *ioc; | 1134 | struct io_context *ioc; |
1135 | int ret = 0; | 1135 | int ret = 0; |
1136 | 1136 | ||
1137 | /* task_lock() is needed to avoid races with exit_io_context() */ | 1137 | /* task_lock() is needed to avoid races with exit_io_context() */ |
1138 | cgroup_taskset_for_each(task, tset) { | 1138 | cgroup_taskset_for_each(task, dst_css, tset) { |
1139 | task_lock(task); | 1139 | task_lock(task); |
1140 | ioc = task->io_context; | 1140 | ioc = task->io_context; |
1141 | if (ioc && atomic_read(&ioc->nr_tasks) > 1) | 1141 | if (ioc && atomic_read(&ioc->nr_tasks) > 1) |