diff options
Diffstat (limited to 'block/blk-cgroup.c')
-rw-r--r-- | block/blk-cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 1cef07cf9c21..4aefd46d7d95 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c | |||
@@ -894,7 +894,7 @@ static int blkcg_can_attach(struct cgroup_subsys_state *css, | |||
894 | int ret = 0; | 894 | int ret = 0; |
895 | 895 | ||
896 | /* task_lock() is needed to avoid races with exit_io_context() */ | 896 | /* task_lock() is needed to avoid races with exit_io_context() */ |
897 | cgroup_taskset_for_each(task, css, tset) { | 897 | cgroup_taskset_for_each(task, tset) { |
898 | task_lock(task); | 898 | task_lock(task); |
899 | ioc = task->io_context; | 899 | ioc = task->io_context; |
900 | if (ioc && atomic_read(&ioc->nr_tasks) > 1) | 900 | if (ioc && atomic_read(&ioc->nr_tasks) > 1) |