diff options
-rw-r--r-- | kernel/cpuset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index ebbc9b082e48..91cf85b36dd5 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -365,7 +365,7 @@ void cpuset_update_task_memory_state(void) | |||
365 | my_cpusets_mem_gen = top_cpuset.mems_generation; | 365 | my_cpusets_mem_gen = top_cpuset.mems_generation; |
366 | } else { | 366 | } else { |
367 | rcu_read_lock(); | 367 | rcu_read_lock(); |
368 | my_cpusets_mem_gen = task_cs(current)->mems_generation; | 368 | my_cpusets_mem_gen = task_cs(tsk)->mems_generation; |
369 | rcu_read_unlock(); | 369 | rcu_read_unlock(); |
370 | } | 370 | } |
371 | 371 | ||
@@ -1777,7 +1777,7 @@ static void move_member_tasks_to_cpuset(struct cpuset *from, struct cpuset *to) | |||
1777 | scan.scan.heap = NULL; | 1777 | scan.scan.heap = NULL; |
1778 | scan.to = to->css.cgroup; | 1778 | scan.to = to->css.cgroup; |
1779 | 1779 | ||
1780 | if (cgroup_scan_tasks((struct cgroup_scanner *)&scan)) | 1780 | if (cgroup_scan_tasks(&scan.scan)) |
1781 | printk(KERN_ERR "move_member_tasks_to_cpuset: " | 1781 | printk(KERN_ERR "move_member_tasks_to_cpuset: " |
1782 | "cgroup_scan_tasks failed\n"); | 1782 | "cgroup_scan_tasks failed\n"); |
1783 | } | 1783 | } |