Thread (26 messages) 26 messages, 5 authors, 2012-05-17

Re: [PATCH v5 1/2] Always free struct memcg through schedule_work()

From: KAMEZAWA Hiroyuki <hidden>
Date: 2012-05-14 00:58:34
Also in: linux-mm, netdev

(2012/05/12 5:11), Glauber Costa wrote:
Right now we free struct memcg with kfree right after a
rcu grace period, but defer it if we need to use vfree() to get
rid of that memory area. We do that by need, because we need vfree
to be called in a process context.

This patch unifies this behavior, by ensuring that even kfree will
happen in a separate thread. The goal is to have a stable place to
call the upcoming jump label destruction function outside the realm
of the complicated and quite far-reaching cgroup lock (that can't be
held when calling neither the cpu_hotplug.lock nor the jump_label_mutex)

Signed-off-by: Glauber Costa <redacted>
CC: Tejun Heo <redacted>
CC: Li Zefan <redacted>
CC: Kamezawa Hiroyuki <redacted>
CC: Johannes Weiner <redacted>
CC: Michal Hocko <redacted>

I think we'll need to revisit this, again.
for now,
Acked-by: KAMEZAWA Hiroyuki <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help