Re: [patch 4/5] cgroup: pass the clone_flags to the cgroup_fork_callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cedric Le Goater wrote:
> On 11/05/2009 09:21 PM, Daniel Lezcano wrote:
>   
>> The fork callback is called but with just the task as parameter.
>> This one is fine to retrieve the different parameters passed to
>> the copy_process function but the clone_flags information is
>> missing, so the hook in the cgroup won't be able to use of it.
>>
>> This patch passes the clone_flags to the cgroup fork callback.
>> That will be useful for a cgroup making process and thread
>> accounting for example.
>>
>> Signed-off-by: Daniel Lezcano <dlezcano@xxxxxxxxxx>
>> Signed-off-by: Cedric Le Goater <clg@xxxxxxxxxx>
>> ---
>>  include/linux/cgroup.h  |    9 ++++++---
>>  kernel/cgroup.c         |    4 ++--
>>  kernel/cgroup_freezer.c |    3 ++-
>>  kernel/fork.c           |    2 +-
>>  4 files changed, 11 insertions(+), 7 deletions(-)
>>     
>
> it lacks a small change in :
>
> 	Documentation/cgroups/cgroups.txt
>
> same comment for the following patch :
>
> 	[patch 5/5] cgroup: call cgroup_exit with do_exit parameter
>   
Right, thanks Cedric.

_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux