Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758496Ab0LNO7Q (ORCPT ); Tue, 14 Dec 2010 09:59:16 -0500 Received: from e39.co.us.ibm.com ([32.97.110.160]:59746 "EHLO e39.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757966Ab0LNO7P (ORCPT ); Tue, 14 Dec 2010 09:59:15 -0500 Date: Tue, 14 Dec 2010 20:29:20 +0530 From: "Suzuki K. Poulose" To: Alexey Dobriyan 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 , Oleg Nesterov , Andrew Morton Subject: Re: [RFC] [Patch 0/21] Non disruptive application core dump infrastructure Message-ID: <20101214202920.6835a3c2@suzukikp> In-Reply-To: <20101214105405.GB4834@core2.telecom.by> References: <20101214152259.67896960@suzukikp> <20101214105405.GB4834@core2.telecom.by> Organization: IBM X-Mailer: Claws Mail 3.7.6 (GTK+ 2.22.0; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1027 Lines: 25 On Tue, 14 Dec 2010 12:54:05 +0200 Alexey Dobriyan wrote: > On Tue, Dec 14, 2010 at 03:22:59PM +0530, Suzuki K. Poulose wrote: > > The interface is provided by a /proc/pid/core file, reading which can give the > > What happens when process opens /proc/self/core ? The current thread will be skipped for freeze(), and all the others will be frozen.We fill in the register states with 0's for the active threads. > What happens when process opens /proc/self/core and coredumps before close(2). Thanks for pointing this out. With the current code, this causes a hang for the current process, waiting for the other threads to clear. I will think about a solution to this making use of the mm->core_state information. Thanks a lot for the review. Suzuki -- 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/