提交 65800ac7 编写于 作者: E Eric W. Biederman 提交者: Linus Torvalds

[PATCH] pid: remove temporary debug code in attach_pid

With the patches flying between Oleg and myself somehow this temporary
debug code got left in pid.c.  It was never intended to make it to the
stable kernel.
Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c18258c6
...@@ -223,9 +223,6 @@ int fastcall attach_pid(struct task_struct *task, enum pid_type type, int nr) ...@@ -223,9 +223,6 @@ int fastcall attach_pid(struct task_struct *task, enum pid_type type, int nr)
struct pid_link *link; struct pid_link *link;
struct pid *pid; struct pid *pid;
WARN_ON(!task->pid); /* to be removed soon */
WARN_ON(!nr); /* to be removed soon */
link = &task->pids[type]; link = &task->pids[type];
link->pid = pid = find_pid(nr); link->pid = pid = find_pid(nr);
hlist_add_head_rcu(&link->node, &pid->tasks[type]); hlist_add_head_rcu(&link->node, &pid->tasks[type]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册