OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH 12/14] Remove copy_pid_ns function
[RFC][PATCH 12/14] Remove copy_pid_ns function [message #17918] Wed, 21 March 2007 03:23 Go to next message
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Subject: [RFC][PATCH 12/14] Remove copy_pid_ns function

Remove the copy_pid_ns() function as we have decoupled pid namespace
from nsproxy and also because we currently disallow unsharing of pid
namespace.

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
---
 kernel/pid.c |    7 -------
 1 file changed, 7 deletions(-)

Index: 2.6.21-rc3-mm2/kernel/pid.c
===================================================================
--- 2.6.21-rc3-mm2.orig/kernel/pid.c
+++ 2.6.21-rc3-mm2/kernel/pid.c
@@ -468,13 +468,6 @@ struct pid *find_ge_pid(int nr)
 }
 EXPORT_SYMBOL_GPL(find_get_pid);

-struct pid_namespace *copy_pid_ns(int flags, struct pid_namespace *old_ns)
-{
-	BUG_ON(!old_ns);
-	get_pid_ns(old_ns);
-	return old_ns;
-}
-
 void free_pid_ns(struct kref *kref)
 {
 	struct pid_namespace *ns;

-- 

_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Re: [RFC][PATCH 12/14] Remove copy_pid_ns function [message #17926 is a reply to message #17918] Wed, 21 March 2007 07:38 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
sukadev@us.ibm.com writes:

> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
> Subject: [RFC][PATCH 12/14] Remove copy_pid_ns function
>
> Remove the copy_pid_ns() function as we have decoupled pid namespace
> from nsproxy and also because we currently disallow unsharing of pid
> namespace.


Where do we remove the call to copy_pid_ns from nsproxy?
Hmm.  In the previous patch.

It probably makes sense to combine those two patches together
as it is a single logical change.

Eric
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
Previous Topic: [RFC][PATCH 09/14] Save leaders struct pid before detach_pid()
Next Topic: [RFC][PATCH 04/14] Add struct pid_nr and pid_nrs list
Goto Forum:
  


Current Time: Tue Aug 19 17:58:30 GMT 2025

Total time taken to generate the page: 0.11383 seconds