Commit 33982f7f authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] use hlist for pid hash: cache friendliness

Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f59ad67e
...@@ -12,11 +12,12 @@ enum pid_type ...@@ -12,11 +12,12 @@ enum pid_type
struct pid struct pid
{ {
/* Try to keep hash_chain in the same cacheline as nr for find_pid */
struct hlist_node hash_chain;
int nr; int nr;
atomic_t count; atomic_t count;
struct task_struct *task; struct task_struct *task;
struct list_head task_list; struct list_head task_list;
struct hlist_node hash_chain;
}; };
struct pid_link struct pid_link
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment