selftests: cgroup: Simplify task self migration
Simplify task migration by being oblivious about its PID during migration. This allows to easily migrate individual threads as well. This change brings no functional change and prepares grounds for thread granularity migrating tests. Signed-off-by: Michal Koutný <mkoutny@suse.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
@@ -701,7 +701,7 @@ static int proc_check_stopped(int pid)
|
||||
char buf[PAGE_SIZE];
|
||||
int len;
|
||||
|
||||
len = proc_read_text(pid, "stat", buf, sizeof(buf));
|
||||
len = proc_read_text(pid, 0, "stat", buf, sizeof(buf));
|
||||
if (len == -1) {
|
||||
debug("Can't get %d stat\n", pid);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user