diff options
author | Prasanna Meda <pmeda@akamai.com> | 2005-01-04 05:28:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-01-04 05:28:28 -0800 |
commit | fe52f9669c249f2bc9c44c541a83b0c18120cb0d (patch) | |
tree | c699f3670e3e423d68ecac98fce315e1c3c3ea7c /fs | |
parent | bb51bc5933d82005cf0625eaaaa16f7df1011ece (diff) | |
download | history-fe52f9669c249f2bc9c44c541a83b0c18120cb0d.tar.gz |
[PATCH] fork: total_forks not counted under tasklist_lock
Bring the total_forks under tasklist_lock. When most of the fork code
icluding nr_threads is moved to copy_process() from do_fork() code in 2.6,
this is left out.
Althought accuracy of total_forks is not important, it would be nice to add
this. It does not involve additional cost, and the code will be cleaner if
it is grouped with nr_threads. The difference is, total_forks will
increase on fork, but nr_threads will increase on fork and decrease on the
exit.
I also moved extern decleration to sched.h from proc_misc.c.
Signed-off-by: Prasanna Meda <pmeda@akamai.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/proc_misc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 73c8b248156a64..0efe2bfb281779 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -322,7 +322,6 @@ static struct file_operations proc_slabinfo_operations = { int show_stat(struct seq_file *p, void *v) { int i; - extern unsigned long total_forks; unsigned long jif; u64 sum = 0, user = 0, nice = 0, system = 0, idle = 0, iowait = 0, irq = 0, softirq = 0; |