OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH 07/14] Remove unused pid_chain from struct pid
[RFC][PATCH 07/14] Remove unused pid_chain from struct pid [message #17913] Wed, 21 March 2007 03:20
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
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@us.ibm.com>
---
 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@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Previous Topic: [RFC][PATCH 05/14] Initialize struct pid_nr for swapper
Next Topic: [RFC][PATCH 08/14] Remove unused nr field from struct pid
Goto Forum:
  


Current Time: Mon Aug 25 17:19:40 GMT 2025

Total time taken to generate the page: 0.09060 seconds