diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-10-16 01:01:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:28 -0400 |
commit | 9363b9f23c9cc36cc8ef6c05fdf879ee4a96ae92 (patch) | |
tree | 482746b06d6fdd8be606de4dff584a3a40054c4c /include | |
parent | 1648993fb05c487947c1cec6307aca29d8002abe (diff) |
memrlimit: cgroup mm owner callback changes to add task info
This patch adds an additional field to the mm_owner callbacks. This field
is required to get to the mm that changed. Hold mmap_sem in write mode
before calling the mm_owner_changed callback
[hugh@veritas.com: fix mmap_sem deadlock]
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Sudhir Kumar <skumar@linux.vnet.ibm.com>
Cc: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Cc: Paul Menage <menage@google.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Pavel Emelianov <xemul@openvz.org>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index c98dd7cb7076..30934e4bfaab 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -326,7 +326,8 @@ struct cgroup_subsys { | |||
326 | */ | 326 | */ |
327 | void (*mm_owner_changed)(struct cgroup_subsys *ss, | 327 | void (*mm_owner_changed)(struct cgroup_subsys *ss, |
328 | struct cgroup *old, | 328 | struct cgroup *old, |
329 | struct cgroup *new); | 329 | struct cgroup *new, |
330 | struct task_struct *p); | ||
330 | int subsys_id; | 331 | int subsys_id; |
331 | int active; | 332 | int active; |
332 | int disabled; | 333 | int disabled; |