Re: [patch] lockless, scalable get_pid(), for_each_process()

Linus Torvalds (torvalds@transmeta.com)
Wed, 18 Sep 2002 11:33:44 -0700 (PDT)


On Wed, 18 Sep 2002, Ingo Molnar wrote:
>
> Eliminating for_each_task loops (the ones completely unrelated to
> the get_pid() issue) is an improvement even for desktop setups, which have
> at most 1000 processes running.

If you really really want to do this, then at least get it integrated
better (ie it should _replace_ pidhash since it appears to just duplicate
the functionality), and get the locking right. Maybe that will make it
look better.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/