diff options
| author | Alexander Viro <viro@math.psu.edu> | 2002-04-21 23:03:18 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-04-21 23:03:18 -0700 |
| commit | ea306a2acfd41396c908552e49f1c1ab4adcdac8 (patch) | |
| tree | 2c7078abbe185f0bcbc44fb8f5ffafe13b10eb18 /include/linux | |
| parent | 87f778927a3f923d85c0473990a9648ce57bac15 (diff) | |
[PATCH] (1/5) sane procfs/dcache interaction
- take unhash_process() into sched.c, move zeroing ->pid into it (and
under tasklist_lock)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 1 insertions, 9 deletions
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) |
