From: Oren Laadan Subject: Simplify restart logic and fix races Date: Wed, 30 Sep 2009 21:47:09 -0400 Message-ID: <1254361634-30076-1-git-send-email-orenl@librato.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: containers.vger.kernel.org This series simplifies adn tightens the restart logic and solves a couple of races that annoyed Serge recently: * c/r: simplify logic of tracking restarting tasks * c/r: let entire thread group in sys_restart before restoring a thread * c/r: introduce walk_task_subtree() to iterate through descendants * c/r: fix restart failure due to a race with ghost/dead tasks * c/r: defer restore of blocked signals mask during restart Applies on ckpt-v18, works well on my tests. Oren.