/* attach_pid() must be called with the tasklist_lock write-held.  */
void attach_pid(struct task_struct *task, enum pid_type type, struct pid *pid)
/* attach_pid() must be called with the tasklist_lock write-held.  */
void attach_pid(struct task_struct *task, enum pid_type type, struct pid *pid)
{
	struct pid_link *link;
	link = &task->pids[type];
	link->pid = pid;
	hlist_add_head_rcu(&link->node, &pid->tasks[type]);
}