From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Piggin Subject: Re: [ANNOUNCE] new new aops patchset Date: Wed, 4 Apr 2007 04:31:09 +0200 Message-ID: <20070404023109.GA18507@wotan.suse.de> References: <20070402120934.GA19626@wotan.suse.de> <1175555699.24533.13.camel@dyn9047017100.beaverton.ibm.com> <20070402234932.GC12295@wotan.suse.de> <1175615824.24533.31.camel@dyn9047017100.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Linux Filesystems , Mark Fasheh , Steven Whitehouse To: Badari Pulavarty Return-path: Received: from cantor.suse.de ([195.135.220.2]:45863 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966199AbXDDCbO (ORCPT ); Tue, 3 Apr 2007 22:31:14 -0400 Content-Disposition: inline In-Reply-To: <1175615824.24533.31.camel@dyn9047017100.beaverton.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Apr 03, 2007 at 08:57:03AM -0700, Badari Pulavarty wrote: > On Tue, 2007-04-03 at 01:49 +0200, Nick Piggin wrote: > > > > Ahh, just the person I wanted to ask! ;) How useful is it, out of curiosity? > > What sort of users use it, and what sort of improvements do they get? > > Well, at the time it helped lowmem issue on x86. Bufferheads end up > using lots of lowmem and caused bunch of issues. We used it heavily > on our local machines. Not sure if any customers use it (my guess > is not). Hmm, I think we need better reclaim for buffers as well. That might help the problem. The thing that doesn't make sense with nobh is that you deliberately throw out buffers for dirty pages, which you know will be needed again for writeout. You also want to do as little work as possible in the writeout path (ie. do it all in the dirtying path) so as to avoid deadlocks and stuff. Anyway, I will keep nobh in mind. A port to the new aops shouldn't be impossible. > > At the moment I'm looking at doing it another way. Having the seperate > > nobh path is quite annoying -- there are still bugs in it and it is > > simply less tested (not that the bh path is bug-free either, but it > > is better to be able to concentrate on one). So I hope to merge them > > at some point to restore that functionality. > > > > > > > BTW, I don't see how block_write_end() can ever return < 0. > > > If so, here is the cleanup fix for ext3 (no unnecessay checks). > > > > Shouldn't we allow for the possibility? > > Well, if there is a (remote) possibility of failure - yes > we should handle it. Otherwise its dead code, unnecessary > checks in hotpath and makes code ugly by confusing non-possible > error cases from possible ones. > > Even today - ext3 code has checks to handle generic_commit_write() > failures. But it never returns failure. I wanted to clean up ext3 code, > but I left it for allowing for possibility. Well I'm just thinking we should all for it in the interface from the start, so that if we ever have a need to error out there, we can without having to update all filesystems. I can't imagine a reason today though...