Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2c4736d9
Commit
2c4736d9
authored
Jan 19, 2018
by
Tejun Heo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-4.15-fixes' into for-4.16
parents
c4e0842b
4f58424d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup-v1.c
+5
-1
kernel/cgroup/cgroup.c
kernel/cgroup/cgroup.c
+10
-11
No files found.
kernel/cgroup/cgroup-v1.c
View file @
2c4736d9
...
...
@@ -123,7 +123,11 @@ int cgroup_transfer_tasks(struct cgroup *to, struct cgroup *from)
*/
do
{
css_task_iter_start
(
&
from
->
self
,
0
,
&
it
);
task
=
css_task_iter_next
(
&
it
);
do
{
task
=
css_task_iter_next
(
&
it
);
}
while
(
task
&&
(
task
->
flags
&
PF_EXITING
));
if
(
task
)
get_task_struct
(
task
);
css_task_iter_end
(
&
it
);
...
...
kernel/cgroup/cgroup.c
View file @
2c4736d9
...
...
@@ -1397,7 +1397,7 @@ static char *cgroup_file_name(struct cgroup *cgrp, const struct cftype *cft,
cgroup_on_dfl
(
cgrp
)
?
ss
->
name
:
ss
->
legacy_name
,
cft
->
name
);
else
str
n
cpy
(
buf
,
cft
->
name
,
CGROUP_FILE_NAME_MAX
);
str
l
cpy
(
buf
,
cft
->
name
,
CGROUP_FILE_NAME_MAX
);
return
buf
;
}
...
...
@@ -1864,9 +1864,9 @@ void init_cgroup_root(struct cgroup_root *root, struct cgroup_sb_opts *opts)
root
->
flags
=
opts
->
flags
;
if
(
opts
->
release_agent
)
str
cpy
(
root
->
release_agent_path
,
opts
->
release_agent
);
str
lcpy
(
root
->
release_agent_path
,
opts
->
release_agent
,
PATH_MAX
);
if
(
opts
->
name
)
str
cpy
(
root
->
name
,
opts
->
name
);
str
lcpy
(
root
->
name
,
opts
->
name
,
MAX_CGROUP_ROOT_NAMELEN
);
if
(
opts
->
cpuset_clone_children
)
set_bit
(
CGRP_CPUSET_CLONE_CHILDREN
,
&
root
->
cgrp
.
flags
);
}
...
...
@@ -4125,26 +4125,24 @@ static void css_task_iter_advance_css_set(struct css_task_iter *it)
static
void
css_task_iter_advance
(
struct
css_task_iter
*
it
)
{
struct
list_head
*
l
=
it
->
task_pos
;
struct
list_head
*
next
;
lockdep_assert_held
(
&
css_set_lock
);
WARN_ON_ONCE
(
!
l
);
repeat:
/*
* Advance iterator to find next entry. cset->tasks is consumed
* first and then ->mg_tasks. After ->mg_tasks, we move onto the
* next cset.
*/
l
=
l
->
next
;
next
=
it
->
task_pos
->
next
;
if
(
l
==
it
->
tasks_head
)
l
=
it
->
mg_tasks_head
->
next
;
if
(
next
==
it
->
tasks_head
)
next
=
it
->
mg_tasks_head
->
next
;
if
(
l
==
it
->
mg_tasks_head
)
if
(
next
==
it
->
mg_tasks_head
)
css_task_iter_advance_css_set
(
it
);
else
it
->
task_pos
=
l
;
it
->
task_pos
=
next
;
/* if PROCS, skip over tasks which aren't group leaders */
if
((
it
->
flags
&
CSS_TASK_ITER_PROCS
)
&&
it
->
task_pos
&&
...
...
@@ -4449,6 +4447,7 @@ static struct cftype cgroup_base_files[] = {
},
{
.
name
=
"cgroup.threads"
,
.
flags
=
CFTYPE_NS_DELEGATABLE
,
.
release
=
cgroup_procs_release
,
.
seq_start
=
cgroup_threads_start
,
.
seq_next
=
cgroup_procs_next
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment