* [PATCH] cgroup: remove early strstrip in cgroup_threads_write
@ 2019-07-24 13:05 Peng Wang
0 siblings, 0 replies; only message in thread
From: Peng Wang @ 2019-07-24 13:05 UTC (permalink / raw)
To: tj, lizefan, hannes; +Cc: cgroups, linux-kernel, Peng Wang
cgroup_procs_write_start() will process leading and
trailing whitespace when necessary.
Signed-off-by: Peng Wang <rocking@whu.edu.cn>
---
kernel/cgroup/cgroup.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/kernel/cgroup/cgroup.c b/kernel/cgroup/cgroup.c
index 753afbca549f..49f2b133cf67 100644
--- a/kernel/cgroup/cgroup.c
+++ b/kernel/cgroup/cgroup.c
@@ -4796,8 +4796,6 @@ static ssize_t cgroup_threads_write(struct kernfs_open_file *of,
struct task_struct *task;
ssize_t ret;
- buf = strstrip(buf);
-
dst_cgrp = cgroup_kn_lock_live(of->kn, false);
if (!dst_cgrp)
return -ENODEV;
--
2.19.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-24 13:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24 13:05 [PATCH] cgroup: remove early strstrip in cgroup_threads_write Peng Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).