Thread (2 messages) 2 messages, 2 authors, 2021-05-10

Re: [PATCH] cgroup: inline cgroup_task_freeze()

From: Tejun Heo <hidden>
Date: 2021-05-10 18:54:38
Also in: lkml

On Mon, May 10, 2021 at 11:45:56AM -0700, Roman Gushchin wrote:
After the introduction of the cgroup.kill there is only one call site
of cgroup_task_freeze() left: cgroup_exit(). cgroup_task_freeze() is
currently taking rcu_read_lock() to read task's cgroup flags, but
because it's always called with css_set_lock locked, the rcu protection
is excessive.

Simplify the code by inlining cgroup_task_freeze().

Signed-off-by: Roman Gushchin <redacted>
Applied to cgroup/for-5.14.

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help