Thread (23 messages) 23 messages, 8 authors, 2011-06-13

Re: [PATCH] [BUGFIX] update mm->owner even if no next owner.

From: Hiroyuki Kamezawa <hidden>
Date: 2011-06-11 23:04:24
Also in: lkml

2011/6/12 Andrea Arcangeli [off-list ref]:
On Sat, Jun 11, 2011 at 07:51:36PM +0200, Johannes Weiner wrote:
quoted
This is a problem with the patch, but I think Kame's analysis and
approach to fix it are still correct.
I agree with Kame's analysis too. This explains why removing the
mmap_sem read mode introduced the problem, it was quite some
unexpected subtleness not apparent to the naked eye, as memcg didn't
explicitly relay on mmap_sem but it did implicitly during exit because
of the __khugepaged_exit waiting if we were collapsing an hugepage...

So the fix is safe because the task struct is freed with
delayed_put_task_struct and that won't run until we rcu_read_unlock
after mem_cgroup_from_task.

Reviewed-by: Andrea Arcangeli <redacted>
Thank you all.

Regards,
-Kame

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help