Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759599Ab0LNQtS (ORCPT ); Tue, 14 Dec 2010 11:49:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64514 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757308Ab0LNQtR (ORCPT ); Tue, 14 Dec 2010 11:49:17 -0500 Date: Tue, 14 Dec 2010 17:42:03 +0100 From: Oleg Nesterov To: "Suzuki K. Poulose" Cc: linux-kernel@vger.kernel.org, Jeremy Fitzhardinge , Christoph Hellwig , Masami Hiramatsu , Ananth N Mavinakayanahalli , Daisuke HATAYAMA , Andi Kleen , Roland McGrath , Amerigo Wang , Linus Torvalds , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Andrew Morton Subject: Re: [Patch 16/21] Wait for threads to freeze Message-ID: <20101214164203.GI11400@redhat.com> References: <20101214152259.67896960@suzukikp> <20101214154900.2d7a643c@suzukikp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101214154900.2d7a643c@suzukikp> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 584 Lines: 20 On 12/14, Suzuki K. Poulose wrote: > > + * zero_thread_state : > + * For threads, which are not frozen, we cannot capture the register state. Indeed, but > + if (!tinfo->frozen) > + zero_thread_state(tinfo); Again, we can race with TASK_STOPPED/SIGCONT. And is_task_frozen_enough() thins task_is_stopped_or_traced() is fine. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/