Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3765077pxk; Tue, 22 Sep 2020 01:45:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysjkx74qfeT1sDEOI6+0XCmBMQe/RrIEQzVvyX+T3km5PXXWkA81RYI+zsttofwAjXt44/ X-Received: by 2002:a17:906:2552:: with SMTP id j18mr3679041ejb.476.1600764358119; Tue, 22 Sep 2020 01:45:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600764358; cv=none; d=google.com; s=arc-20160816; b=IiQaajOfZakJjTZzt0B1fvAx9DOlLm+LceOIcTc21LLzNSQbum0No2LNoJNsdWANra oLUIRbaXZhK6JiiqKDiniT/Cmwrexcrekaevyiicj6tQvHig5WOK0G+zA/rbxojd8cip 8O3T08/8Kr18MZ8fkrHu45g43ySrfX0gbte6ipjkAO1aAHmLb/NHWpJWgIn1Nxpc7yj9 v3WTMiDQUj4m7v8y6zWSwMz6w/o8QsXFWrn942DeFuOJBnA0RHurBkEQrM6RphBxidZv 9NjkQcygLCSsyfQbHaJw13lErInwoWUY0pg99ce9UphSO4Rtp8xcvymtlD2WY6U9nWhX mLrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ENpA3JZavPYKgGATr6OLf3qYmi23yX7DAtuGenza7fE=; b=B2wOpcGB0ERdLy04WxKJMlvDya66GcGAakrL0g3gVCoU4DWpusH9lcdhMQKE9ieNZ+ FYq0nnndPO7JcfA+OfQMrreboThLTRki+wNi1wZz7ORNWQG8DAKMp5jstJoCXlJ4JMbF 27nBMf09u6GhwfibqZtSlrJdY7PszoPcsptq7JlAFlwB6l5ErBcurIozDPenlyXVJ/TB BvDyuES089M6UX6KAYV/NY7pDjmjKUkBZslBkf80k33oA7XqNjCwOtItLIfhDDQlHGC0 2LzdE7zfc3HttsB1an2pKAlOnG/agMpivTNYLfvQ/KWDMBpKpTlvqgKuFeYK7uNLEgxv KatQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si10155780eji.66.2020.09.22.01.45.34; Tue, 22 Sep 2020 01:45:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726548AbgIVIoe (ORCPT + 99 others); Tue, 22 Sep 2020 04:44:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:51464 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgIVIod (ORCPT ); Tue, 22 Sep 2020 04:44:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AC920ACBF; Tue, 22 Sep 2020 08:45:08 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id 7FB371E12E3; Tue, 22 Sep 2020 10:44:31 +0200 (CEST) Date: Tue, 22 Sep 2020 10:44:31 +0200 From: Jan Kara To: Christoph Hellwig Cc: Jens Axboe , Song Liu , Hans de Goede , Coly Li , Richard Weinberger , Minchan Kim , Johannes Thumshirn , Justin Sanders , linux-mtd@lists.infradead.org, dm-devel@redhat.com, linux-block@vger.kernel.org, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org, drbd-dev@lists.linbit.com, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, cgroups@vger.kernel.org Subject: Re: [PATCH 03/13] bcache: inherit the optimal I/O size Message-ID: <20200922084431.GA16464@quack2.suse.cz> References: <20200921080734.452759-1-hch@lst.de> <20200921080734.452759-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200921080734.452759-4-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 21-09-20 10:07:24, Christoph Hellwig wrote: > Inherit the optimal I/O size setting just like the readahead window, > as any reason to do larger I/O does not apply to just readahead. > > Signed-off-by: Christoph Hellwig The patch looks good to me. You can add: Reviewed-by: Jan Kara Honza > --- > drivers/md/bcache/super.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c > index 1bbdc410ee3c51..48113005ed86ad 100644 > --- a/drivers/md/bcache/super.c > +++ b/drivers/md/bcache/super.c > @@ -1430,6 +1430,8 @@ static int cached_dev_init(struct cached_dev *dc, unsigned int block_size) > dc->disk.disk->queue->backing_dev_info->ra_pages = > max(dc->disk.disk->queue->backing_dev_info->ra_pages, > q->backing_dev_info->ra_pages); > + blk_queue_io_opt(dc->disk.disk->queue, > + max(queue_io_opt(dc->disk.disk->queue), queue_io_opt(q))); > > atomic_set(&dc->io_errors, 0); > dc->io_disable = false; > -- > 2.28.0 > -- Jan Kara SUSE Labs, CR