]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fork: call complete_vfork_done() after clearing child_tid and flushing rss-counters
authorKonstantin Khlebnikov <khlebnikov@openvz.org>
Thu, 3 May 2012 05:44:44 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:57 +0000 (15:46 +1000)
commitbc15f69419485b9d912970391db51e7dc9fa5ee6
tree93659ec4ae20ab51a5aaf6b7f71f44754dfc2f59
parente37b6d3bf76c3164a6d3fe0327e9a79bfcfe3db6
fork: call complete_vfork_done() after clearing child_tid and flushing rss-counters

Child should wake up the parent from vfork() only after finishing all
operations with shared mm.  There is no sense in using
CLONE_CHILD_CLEARTID together with CLONE_VFORK, but it looks more accurate
now.

Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/fork.c