From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2/2] mm: Implement writeback livelock avoidance using page tagging Date: Fri, 13 Aug 2010 03:50:59 -0400 Message-ID: <20100813075059.GA4122@infradead.org> References: <1275677231-15662-1-git-send-email-jack@suse.cz> <1275677231-15662-3-git-send-email-jack@suse.cz> <20100812183547.GA2294@infradead.org> <20100812222857.GC3665@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, Andrew Morton , npiggin@suse.de, david@fromorbit.com, linux-mm@kvack.org To: Jan Kara Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:38982 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755651Ab0HMHvD (ORCPT ); Fri, 13 Aug 2010 03:51:03 -0400 Content-Disposition: inline In-Reply-To: <20100812222857.GC3665@quack.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Aug 13, 2010 at 12:28:58AM +0200, Jan Kara wrote: > And from the values in registers the loop seems to have went astray > because "index" was zero at the point we entered the loop... looking > around... Ah, I see, you create files with 16TB size which creates > radix tree of such height that radix_tree_maxindex(height) == ~0UL and > if write_cache_pages() passes in ~0UL as end, we can overflow the index. > Hmm, I haven't realized that is possible. > OK, attached is a patch that should fix the issue. This seems to fix the case for me.