From ea306a2acfd41396c908552e49f1c1ab4adcdac8 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Sun, 21 Apr 2002 23:03:18 -0700 Subject: [PATCH] (1/5) sane procfs/dcache interaction - take unhash_process() into sched.c, move zeroing ->pid into it (and under tasklist_lock) --- include/linux/sched.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'include/linux') diff --git a/include/linux/sched.h b/include/linux/sched.h index f5fd7b435bd1..8f0df64bb723 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -769,15 +769,7 @@ static inline struct task_struct *younger_sibling(struct task_struct *p) #define thread_group_leader(p) (p->pid == p->tgid) -static inline void unhash_process(struct task_struct *p) -{ - write_lock_irq(&tasklist_lock); - nr_threads--; - unhash_pid(p); - REMOVE_LINKS(p); - list_del(&p->thread_group); - write_unlock_irq(&tasklist_lock); -} +extern void unhash_process(struct task_struct *p); /* Protects ->fs, ->files, ->mm, and synchronises with wait4(). Nests inside tasklist_lock */ static inline void task_lock(struct task_struct *p) -- cgit v1.2.3