From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 19/19] BLOCK: Make it possible to disable the block layer [try #6] Date: Wed, 30 Aug 2006 12:44:00 -0700 Message-ID: <20060830124400.23ca9b38.akpm@osdl.org> References: <20060829180552.32596.15290.stgit@warthog.cambridge.redhat.com> <20060829180634.32596.4507.stgit@warthog.cambridge.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Received: from smtp.osdl.org ([65.172.181.4]:62629 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751398AbWH3ToV (ORCPT ); Wed, 30 Aug 2006 15:44:21 -0400 To: David Howells In-Reply-To: <20060829180634.32596.4507.stgit@warthog.cambridge.redhat.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org I think I'll just slam all this in at the first opportunity. Stuff will break, but it will be easy to fix. If you try to upissue this patchset I shall be seeking an IP-routable hand grenade. On Tue, 29 Aug 2006 19:06:34 +0100 David Howells wrote: > +static inline long blk_congestion_wait(int rw, long timeout) > +{ > + return timeout; > +} This function is misnamed and is implemented in the wrong place. It's not really a block thing at all. If/when/soon NFS starts to implement it and call it, things will need to be renamed and reshuffled. Simply stubbing it out like this will cause general mayhem and CPU meltdown all over the writeback and page-reclaim code. So... for now, I'll replace it with a simple io_schedule_timeout(timeout), which is equivalent to what we do now for network filesystems.