OpenVZ Forum


Home » Mailing lists » Devel » + attach_pid-with-struct-pid-parameter.patch added to -mm tree
Re: + attach_pid-with-struct-pid-parameter.patch added to -mm tree [message #17138 is a reply to message #17135] Thu, 11 January 2007 21:48 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
akpm@osdl.org writes:

> The patch titled
>      attach_pid() with struct pid parameter
> has been added to the -mm tree.  Its filename is
>      attach_pid-with-struct-pid-parameter.patch
>
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
>
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
>
> ------------------------------------------------------
> Subject: attach_pid() with struct pid parameter
> From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
>
> Implement a new version of attach_pid() with a struct pid parameter and wrap
> find_attach_pid() around it.  attach_pid() would also be used in subsequent
> container patches.

I guess these two patches work.  But it sure looks like the long way around
as a way of changing the argument to attach_pid.

As incremental step couldn't we just have changed the callers to:
attach_pid(task, type, find_pid(nr)).

Not that I think changing all of the callers to actually pass in the correct
struct pid is going to be much of a problem.

It just seems like a whole lot of unnecessary thrash to change them
all to find_attach_pid and then back to attach_pid.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Previous Topic: [RFC][PATCH] Use task_pgrp()/task_session() in copy_process
Next Topic: [PATCH] Remove find_attach_pid()
Goto Forum:
  


Current Time: Thu Sep 18 03:13:20 GMT 2025

Total time taken to generate the page: 0.05679 seconds