Re: [RFC] O(1) proc_pid_readdir

From: William Lee Irwin III (wli@holomorphy.com)
Date: Sun Mar 16 2003 - 15:10:01 EST


On Sun, Mar 16, 2003 at 04:52:48PM +0100, Manfred Spraul wrote:
> Below is a proposal to get rid of the quadratic behaviour of
> proc_pid_readir(): Instead of storing the task number in f_pos and walking
> tasks by tasklist order, the pid is stored in f_pos and the tasks are
> walked by (hash-mangled) pid order.

Looks good to me. Testing soon.

-- wli
-
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/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:18 EST