From: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> Subject: [RFC][PATCH 07/14] Remove unused pid_chain from struct pid Now that we use struct pid_nr entries in the pid_hash table, we no longer need pid_chain field in struct pid. Signed-off-by: Sukadev Bhattiprolu <sukadev@xxxxxxxxxx> --- include/linux/init_task.h | 2 -- include/linux/pid.h | 2 -- 2 files changed, 4 deletions(-) Index: 2.6.21-rc3-mm2/include/linux/pid.h =================================================================== --- 2.6.21-rc3-mm2.orig/include/linux/pid.h +++ 2.6.21-rc3-mm2/include/linux/pid.h @@ -62,9 +62,7 @@ struct pid_nr struct pid { atomic_t count; - /* Try to keep pid_chain in the same cacheline as nr for find_pid */ int nr; - struct hlist_node pid_chain; /* lists of tasks that use this pid */ struct hlist_head tasks[PIDTYPE_MAX]; struct rcu_head rcu; Index: 2.6.21-rc3-mm2/include/linux/init_task.h =================================================================== --- 2.6.21-rc3-mm2.orig/include/linux/init_task.h +++ 2.6.21-rc3-mm2/include/linux/init_task.h @@ -108,8 +108,6 @@ extern struct group_info init_groups; #define INIT_STRUCT_PID { \ .count = ATOMIC_INIT(1), \ .nr = 0, \ - /* Don't put this struct pid in pid_hash */ \ - .pid_chain = { .next = NULL, .pprev = NULL }, \ .tasks = { \ { .first = &init_task.pids[PIDTYPE_PID].node }, \ { .first = &init_task.pids[PIDTYPE_PGID].node }, \ -- _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers