Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764694AbXHAKEj (ORCPT ); Wed, 1 Aug 2007 06:04:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761365AbXHAKE3 (ORCPT ); Wed, 1 Aug 2007 06:04:29 -0400 Received: from ns2.suse.de ([195.135.220.15]:50461 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbXHAKE2 (ORCPT ); Wed, 1 Aug 2007 06:04:28 -0400 From: Neil Brown To: "Dan Merillat" Date: Wed, 1 Aug 2007 20:04:03 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18096.23187.887075.943181@notabene.brown> Cc: "Eric Sandeen" , "Satyam Sharma" , "Alan Cox" , "Andrea Arcangeli" , "Matt Mackall" , "Rene Herman" , "Ray Lee" , "Bodo Eggert" <7eggert@gmx.de>, "Jeremy Fitzhardinge" , "Jesper Juhl" , "Linux Kernel Mailing List" , "William Lee Irwin III" , "David Chinner" , "Arjan van de Ven" Subject: Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...? In-Reply-To: message from Dan Merillat on Wednesday August 1 References: <469BF104.1040703@gmail.com> <20070719013955.1bedc423@the-village.bc.nu> <20070719013358.GD29728@v2.random> <20070719013725.GP11115@waste.org> <20070719112436.GG29728@v2.random> <20070719124419.48c3d610@the-village.bc.nu> <46A9ECD5.3050801@sandeen.net> <20070727183807.2d7dbe7b@the-village.bc.nu> <46B003A3.1090507@sandeen.net> X-Mailer: VM 7.19 under Emacs 21.4.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D > The other issue is with the layered IO design - no matter what we > configure the stack size to, it is still possible to create a set of > translation layers that will cause it to crash regularly: XFS on > dm_crypt on loop on XFS on dm_crypt on loop on ad infinitum. No, this does not use indefinite stack. loop will schedule each request to be handled by a kernel thread, so requests to 'loop' are serialised, never stacked. In 2.6.22, generic_make_request detects and serialises recursive calls, so unlimited recursion is not possible there either. It is still possible to do dm on dm on dm on dm on md on md on md on md and calls to ->issue_flush_fn or ->unplug_fn could use an arbitrarily large amount of stack. But the stack usage of each stage is very small so it is unlikely to be a problem (though it should still be fixed). NeilBrown - 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/