From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 5F0F6420375 for ; Sat, 19 Sep 2020 09:01:49 +0200 (CEST) Date: Sat, 19 Sep 2020 09:01:17 +0200 From: Christoph Hellwig To: Jan Kara Message-ID: <20200919070117.GB8237@lst.de> References: <20200910144833.742260-1-hch@lst.de> <20200910144833.742260-5-hch@lst.de> <20200917100459.GK7347@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200917100459.GK7347@quack2.suse.cz> Cc: Jens Axboe , linux-raid@vger.kernel.org, Hans de Goede , Minchan Kim , Richard Weinberger , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Song Liu , dm-devel@redhat.com, linux-mtd@lists.infradead.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, David Sterba , Christoph Hellwig , drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] [PATCH 04/12] bdi: initialize ->ra_pages and ->io_pages in bdi_init List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, Sep 17, 2020 at 12:04:59PM +0200, Jan Kara wrote: > On Thu 10-09-20 16:48:24, Christoph Hellwig wrote: > > Set up a readahead size by default, as very few users have a good > > reason to change it. > > > > Signed-off-by: Christoph Hellwig > > Acked-by: David Sterba [btrfs] > > Acked-by: Richard Weinberger [ubifs, mtd] > > Looks good but what about coda, ecryptfs, and orangefs? Currenly they have > readahead disabled and this patch would seem to enable it? When going through this I pinged all maintainers and asked if anyone had a reason to actually disable the readahead, and only vbox and the mtd/ubifs maintainers came up with a reason. > > > diff --git a/mm/backing-dev.c b/mm/backing-dev.c > > index 8e8b00627bb2d8..2dac3be6127127 100644 > > --- a/mm/backing-dev.c > > +++ b/mm/backing-dev.c > > @@ -746,6 +746,8 @@ struct backing_dev_info *bdi_alloc(int node_id) > > kfree(bdi); > > return NULL; > > } > > + bdi->ra_pages = VM_READAHEAD_PAGES; > > + bdi->io_pages = VM_READAHEAD_PAGES; > > Won't this be more logical in bdi_init() than in bdi_alloc()? bdi_init is also used for noop_backing_dev_info, which should not have readahead enabled. In fact the only caller except for bdi_alloc is the initialization of noop_backing_dev_info.