Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757932AbXJOJRT (ORCPT ); Mon, 15 Oct 2007 05:17:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754664AbXJOJRL (ORCPT ); Mon, 15 Oct 2007 05:17:11 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:41960 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754009AbXJOJRK (ORCPT ); Mon, 15 Oct 2007 05:17:10 -0400 Date: Mon, 15 Oct 2007 02:16:24 -0700 From: Andrew Morton To: Nick Piggin Cc: Christian Borntraeger , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Martin Schwidefsky , "Theodore Ts'o" Subject: Re: [PATCH resend] ramdisk: fix zeroed ramdisk pages on memory pressure Message-Id: <20071015021624.7d5233bd.akpm@linux-foundation.org> In-Reply-To: <200710160006.19735.nickpiggin@yahoo.com.au> References: <200710151028.34407.borntraeger@de.ibm.com> <200710160006.19735.nickpiggin@yahoo.com.au> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.8.17; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1624 Lines: 38 On Tue, 16 Oct 2007 00:06:19 +1000 Nick Piggin wrote: > On Monday 15 October 2007 18:28, Christian Borntraeger wrote: > > Andrew, this is a resend of a bugfix patch. Ramdisk seems a bit > > unmaintained, so decided to sent the patch to you :-). > > I have CCed Ted, who did work on the code in the 90s. I found no current > > email address of Chad Page. > > This really needs to be fixed... rd.c is fairly mind-boggling vfs abuse. > I can't make up my mind between the approaches to fixing it. > > On one hand, I would actually prefer to really mark the buffers > dirty (as in: Eric's fix for this problem[*]) than this patch, > and this seems a bit like a bandaid... > > On the other hand, the wound being covered by the bandaid is > actually the code in the buffer layer that does this latent > "cleaning" of the page because it sadly doesn't really keep > track of the pagecache state. But it *still* feels like we > should be marking the rd page's buffers dirty which should > avoid this problem anyway. > > [*] However, hmm, with Eric's patch I guess we'd still have a hole > where filesystems that write their buffers by hand think they are > "cleaning" these things and we're back to square one. That could > be fixed by marking the buffers dirty again? > > Why were Eric's patches dropped, BTW? I don't remember. runtime problems, iirc. - 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/